Function at 0x49dbb0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 4
mov dword [ebp - 0x1ec], esi
call fcn.0051d4d3
xor edi, edi
add esp, 4
cmp eax, edi
je 0x49dbe2
mov dword [eax], esi
jmp 0x49dbe4
xor eax, eax
push 4
mov dword [esi], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea ebx, [esi + 0x18]
call fcn.0051d4d3
add esp, 4
cmp eax, edi
je 0x49dc04
mov dword [eax], ebx
jmp 0x49dc06
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
push 4
lea ebx, [esi + 0x30]
call fcn.0051d4d3
add esp, 4
cmp eax, edi
je 0x49dc26
mov dword [eax], ebx
jmp 0x49dc28
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
push 4
lea ebx, [esi + 0x48]
call fcn.0051d4d3
add esp, 4
cmp eax, edi
je 0x49dc48
mov dword [eax], ebx
jmp 0x49dc4a
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [esi + 0x60], 0x3e8
mov dword [esi + 0x64], 0x32
mov dword [esi + 0x68], 0x3200000
mov dword [esi + 0x6c], edi
push 4
add esi, 0x70
call fcn.0051d4d3
add esp, 4
cmp eax, edi
je 0x49dc82
mov dword [eax], esi
jmp 0x49dc84
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 0x250]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00473c90
add esp, 4
push str.config_newui_themesdefault_tools_tools_config.dat
lea ecx, [ebp - 0x20c]
call fcn.00464b60
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.0044f380
mov eax, dword [ebp - 0x20c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ea40
mov eax, dword [ebp - 0x22c]
push 1
push 0x5832c0
push 0x5832b0
lea edx, [ebp - 0x1b0]
push edx
mov esi, 0xf
xor edi, edi
push eax
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x19c], edi
mov byte [ebp - 0x1ac], 0
call fcn.00499660
push 4
call fcn.0051d4d3
add esp, 0x18
cmp eax, edi
je 0x49dd53
lea ecx, [ebp - 0x24c]
mov dword [eax], ecx
mov dword [ebp - 0x24c], eax
jmp 0x49dd59
mov dword [ebp - 0x24c], edi
cmp dword [ebp - 0x198], 0x10
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
jae 0x49dd80
lea eax, [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1ec]
push 0x565dd8
lea edx, [ebp - 0x24c]
push edx
push eax
call fcn.0049d510
push 0x103
lea eax, [ebp - 0x107]
push edi
push eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], edi
mov byte [ebp - 0x13c], 0
mov byte [ebp - 0x108], 0
call fcn.0051d250
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x565dc8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, dword [ebp - 0x23c]
mov ecx, esi
sub ecx, dword [ebp - 0x240]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], edi
je 0x49e99f
sub esi, dword [ebp - 0x240]
mov eax, 0x92492493
imul esi
add edx, esi
mov esi, dword [ebp - 0x234]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x49de39
call fcn.0051f89a
mov edx, dword [ebp - 0x240]
lea ecx, [esi*8]
sub ecx, esi
cmp dword [edx + ecx*4 + 0x18], 0x10
lea eax, [edx + ecx*4]
jb 0x49de57
mov ecx, dword [eax + 4]
jmp 0x49de5a
lea ecx, [eax + 4]
mov eax, ecx
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49de80
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.0044fa50
push 1
push 0
push 0x565dc4
lea ecx, [ebp - 0x178]
call fcn.00430610
push 1
push 0
push 0x565dc0
lea ecx, [ebp - 0x178]
mov esi, eax
call fcn.00430610
push 1
push 0
push 0x565dbc
lea ecx, [ebp - 0x178]
mov ebx, eax
call fcn.00430610
mov edi, eax
test esi, esi
jne 0x49df40
cmp ebx, 0xffffffff
je 0x49df40
dec ebx
push ebx
push 1
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x110], esi
mov byte [ebp - 0x120], 0
call fcn.0044f7c0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x140]
call fcn.0044f7c0
mov esi, 0x10
cmp dword [ebp - 0x10c], esi
jb 0x49e54d
mov edx, dword [ebp - 0x120]
push edx
jmp 0x49e545
cmp edi, 0xffffffff
je 0x49e968
xor ebx, ebx
push edi
push ebx
lea eax, [ebp - 0x178]
mov esi, 0xf
push eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1d0], esi
mov dword [ebp - 0x1d4], ebx
mov byte [ebp - 0x1e4], bl
call fcn.0044f7c0
mov ecx, dword [ebp - 0x164]
push ecx
inc edi
push edi
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], ebx
mov byte [ebp - 0x158], bl
call fcn.0044f7c0
push 4
call fcn.0051d4d3
add esp, 4
cmp eax, ebx
je 0x49dfc1
lea ecx, [ebp - 0x208]
mov dword [eax], ecx
mov dword [ebp - 0x208], eax
jmp 0x49dfc7
mov dword [ebp - 0x208], ebx
mov eax, dword [ebp - 0x158]
mov edi, 0x10
mov dword [ebp - 0x1fc], ebx
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x1f4], ebx
cmp dword [ebp - 0x144], edi
jae 0x49dff2
lea eax, [ebp - 0x158]
mov esi, dword [ebp - 0x1ec]
push 0x565db8
lea edx, [ebp - 0x208]
push edx
push eax
mov ecx, esi
call fcn.0049d510
mov eax, dword [ebp - 0x12c]
push 3
push 0x565db4
push eax
push ebx
lea ecx, [ebp - 0x140]
call fcn.00439dc0
test eax, eax
jne 0x49e145
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x49e4b2
xor edi, edi
mov dword [ebp - 0x258], edi
cmp ebx, eax
jb 0x49e06e
call fcn.0051f89a
mov ecx, dword [ebp - 0x1fc]
cmp dword [edi + ecx + 0x18], 0x10
jb 0x49e07b
mov esi, dword [edi + ecx + 4]
jmp 0x49e07f
lea esi, [edi + ecx + 4]
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
mov ecx, 0x599458
call eax
mov edi, eax
add edi, 0x10
mov dword [ebp - 0x1f0], edi
test esi, esi
je 0x49e0c7
test esi, 0xffff0000
jne 0x49e0c7
movzx esi, si
push 0
push esi
call int.00414bc0
add esp, 8
test eax, eax
je 0x49e0d9
push esi
push eax
lea ecx, [ebp - 0x1f0]
call fcn.00449ae0
jmp 0x49e0d3
push esi
lea ecx, [ebp - 0x1f0]
call fcn.00449a50
mov edi, dword [ebp - 0x1f0]
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, dword [ebp - 0x1ec]
call fcn.004894f0
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x49e107
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
mov edi, dword [ebp - 0x258]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add edi, 0x1c
add eax, edx
mov dword [ebp - 0x258], edi
cmp ebx, eax
jb 0x49e06e
jmp 0x49e4b2
mov ecx, dword [ebp - 0x12c]
push 6
push str.folder
push ecx
push ebx
lea ecx, [ebp - 0x140]
call fcn.00439dc0
test eax, eax
jne 0x49e38f
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x49e4b2
xor ebx, ebx
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x565dc8
mov esi, 0xf
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x120], 0
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49e1d0
sub eax, ecx
push eax
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0x124]
call fcn.0044fa50
push 0xd
push 0x565dc8
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x224], 0
call fcn.0044fa50
mov ecx, dword [ebp - 0x1f8]
sub ecx, dword [ebp - 0x1fc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x49e23d
call fcn.0051f89a
cmp dword [ebp - 0x210], 0x10
mov ecx, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x224]
lea esi, [ebx + ecx]
jae 0x49e25b
lea eax, [ebp - 0x224]
mov edx, dword [ebp - 0x214]
push edx
push 0
push eax
mov ecx, esi
call fcn.00430610
cmp eax, 0xffffffff
je 0x49e28b
mov edx, dword [ebp - 0x214]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x124]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0044dd10
mov esi, 0x10
cmp dword [ebp - 0x210], esi
jb 0x49e2a7
mov eax, dword [ebp - 0x224]
push eax
call fcn.0051d230
add esp, 4
mov dword [ebp - 0x210], 0xf
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x224], 0
cmp dword [ebp - 0x10c], esi
jb 0x49e2d9
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.0051d230
add esp, 4
mov ecx, dword [ebp - 0x1f8]
mov esi, dword [ebp - 0x1fc]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x49e309
call fcn.0051f89a
mov esi, dword [ebp - 0x1fc]
cmp dword [ebx + esi + 0x18], 0x10
jb 0x49e316
mov esi, dword [ebx + esi + 4]
jmp 0x49e31a
lea esi, [ebx + esi + 4]
push esi
lea ecx, [ebp - 0x25c]
call fcn.00454be0
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x1ec]
add ecx, 0x48
call fcn.004894f0
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e35d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
cmp edi, eax
jb 0x49e192
jmp 0x49e4b2
mov ecx, dword [ebp - 0x12c]
push 3
push 0x565da8
push ecx
push ebx
lea ecx, [ebp - 0x140]
call fcn.00439dc0
test eax, eax
jne 0x49e46a
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x49e4b2
xor ebx, ebx
cmp edi, eax
jb 0x49e3eb
call fcn.0051f89a
mov ecx, dword [ebp - 0x1fc]
cmp dword [ebx + ecx + 0x18], 0x10
jb 0x49e3f8
mov ecx, dword [ebx + ecx + 4]
jmp 0x49e3fc
lea ecx, [ebx + ecx + 4]
push ecx
lea ecx, [ebp - 0x254]
call fcn.00454be0
mov ecx, dword [ebp - 0x1ec]
lea edx, [ebp - 0x254]
push edx
add ecx, 0x18
call fcn.004894f0
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e43f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
cmp edi, eax
jb 0x49e3eb
jmp 0x49e4b2
mov ecx, dword [ebp - 0x12c]
push 6
push str.flevel
push ecx
push ebx
lea ecx, [ebp - 0x140]
call fcn.00439dc0
test eax, eax
jne 0x49e565
mov eax, dword [ebp - 0x158]
cmp dword [ebp - 0x144], edi
jae 0x49e4a0
lea eax, [ebp - 0x158]
push eax
call fcn.00525263
add esp, 4
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 0x1fc]
xor edi, edi
cmp ecx, edi
je 0x49e4e2
mov edx, dword [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x200]
push eax
push edx
push ecx
call fcn.0049c200
mov eax, dword [ebp - 0x1fc]
push eax
call fcn.0051d230
add esp, 0x14
mov ecx, dword [ebp - 0x208]
push ecx
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x1f8], edi
mov dword [ebp - 0x1f4], edi
call fcn.0051d230
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x144], esi
jb 0x49e51f
mov edx, dword [ebp - 0x158]
push edx
call fcn.0051d230
add esp, 4
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], edi
mov byte [ebp - 0x158], 0
cmp dword [ebp - 0x1d0], esi
jb 0x49e54d
mov eax, dword [ebp - 0x1e4]
push eax
call fcn.0051d230
add esp, 4
cmp dword [ebp - 0x160], esi
jb 0x49e980
mov ecx, dword [ebp - 0x174]
push ecx
jmp 0x49e978
lea edx, [ebp - 0x140]
push str.fsize
push edx
call fcn.0049be60
add esp, 8
test al, al
je 0x49e5a5
mov eax, dword [ebp - 0x158]
cmp dword [ebp - 0x144], edi
jae 0x49e591
lea eax, [ebp - 0x158]
push eax
call fcn.00525279
add esp, 4
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
jmp 0x49e4ac
lea eax, [ebp - 0x140]
push 0x565d94
push eax
call fcn.0049be60
add esp, 8
test al, al
je 0x49e4ac
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1f0], 0
je 0x49e4b2
mov ebx, edi
lea ecx, [ebp - 0x224]
call fcn.0049c550
mov ecx, dword [ebp - 0x1f0]
push ecx
lea ecx, [ebp - 0x208]
call fcn.0049b5a0
cmp dword [eax + 0x18], ebx
jb 0x49e61b
mov eax, dword [eax + 4]
jmp 0x49e61e
add eax, 4
mov ecx, dword [ebp - 0x1ec]
push 0x565d90
lea edx, [ebp - 0x224]
push edx
push eax
call fcn.0049d510
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x218]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x49e922
lea ecx, [ebp - 0x27c]
call fcn.0049c770
push 0
lea ecx, [ebp - 0x224]
call fcn.0049b5a0
push eax
lea ecx, [ebp - 0x194]
call fcn.004556d0
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x298]
call fcn.00459780
push 0x565dc8
lea ecx, [ebp - 0x124]
call fcn.00459780
lea edx, [ebp - 0x298]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x194]
push ecx
mov ecx, dword [ebp - 0x1ec]
call fcn.0049c080
lea ecx, [ebp - 0x124]
call fcn.00449890
lea ecx, [ebp - 0x298]
call fcn.00449890
mov eax, dword [ebp - 0x190]
cmp dword [ebp - 0x17c], ebx
jae 0x49e6ee
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00449a50
push 1
lea ecx, [ebp - 0x224]
call fcn.0049b5a0
push eax
lea ecx, [ebp - 0x1cc]
call fcn.004556d0
lea edx, [ebp - 0x1cc]
push 0x565d8c
push edx
call fcn.0049be60
mov edi, dword [ebp - 0x214]
mov byte [ebp - 0x278], al
mov ecx, edi
sub ecx, dword [ebp - 0x218]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 8
cmp eax, 3
jne 0x49e792
push 0x565da8
push 2
lea ecx, [ebp - 0x224]
call fcn.0049b5a0
push eax
call fcn.0049be60
add esp, 8
test al, al
je 0x49e78c
mov eax, dword [ebp - 0x1ec]
add eax, 0x18
push eax
lea ecx, [ebp - 0x274]
call fcn.0049c9f0
jmp 0x49e885
mov edi, dword [ebp - 0x214]
sub edi, dword [ebp - 0x218]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
mov esi, 2
add ecx, edx
cmp ecx, esi
jbe 0x49e885
xor edi, edi
lea ebx, [ebx]
push esi
lea ecx, [ebp - 0x224]
call fcn.0049b5a0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x110], edi
mov byte [ebp - 0x120], 0
call fcn.0044f7c0
mov eax, dword [ebp - 0x120]
cmp dword [ebp - 0x10c], ebx
jae 0x49e806
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00454be0
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x274]
call fcn.004894f0
mov eax, dword [ebp - 0x20c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e846
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x10c], ebx
jb 0x49e85d
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.0051d230
add esp, 4
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x218]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
jb 0x49e7c0
lea ecx, [ebp - 0x27c]
push ecx
mov ecx, dword [ebp - 0x1ec]
add ecx, 0x70
call fcn.0049db30
cmp dword [ebp - 0x1b4], ebx
jb 0x49e8b1
mov edx, dword [ebp - 0x1c8]
push edx
call fcn.0051d230
add esp, 4
xor esi, esi
mov edi, 0xf
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1b8], esi
mov byte [ebp - 0x1c8], 0
cmp dword [ebp - 0x17c], ebx
jb 0x49e8e2
mov eax, dword [ebp - 0x190]
push eax
call fcn.0051d230
add esp, 4
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x180], esi
mov byte [ebp - 0x190], 0
call fcn.0047f260
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e922
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x224]
call fcn.0049c990
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
mov edi, dword [ebp - 0x1f0]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0x1f0], edi
cmp edi, eax
jb 0x49e5f4
jmp 0x49e4b2
cmp dword [ebp - 0x160], 0x10
jb 0x49e980
mov edx, dword [ebp - 0x174]
push edx
call fcn.0051d230
add esp, 4
mov eax, dword [ebp - 0x234]
mov esi, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x234], eax
cmp eax, dword [ebp - 0x230]
jb 0x49de11
mov ebx, 0x10
cmp dword [ebp - 0x128], ebx
jb 0x49e9c1
mov eax, dword [ebp - 0x13c]
push eax
call fcn.0051d230
mov esi, dword [ebp - 0x23c]
add esp, 4
mov eax, dword [ebp - 0x240]
xor edi, edi
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], edi
mov byte [ebp - 0x13c], 0
cmp eax, edi
je 0x49ea08
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x244]
push edx
push esi
push eax
call fcn.0049c200
mov eax, dword [ebp - 0x240]
push eax
call fcn.0051d230
add esp, 0x14
mov ecx, dword [ebp - 0x24c]
push ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
call fcn.0051d230
add esp, 4
cmp dword [ebp - 0x198], ebx
jb 0x49ea40
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.0051d230
add esp, 4
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x49ea65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ea87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ec]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret