Function at 0x4c53ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4c53f5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4c540e
add esp, 0xfffffff0
call fcn.004044d0
mov dword [ebp - 0x10], ecx
mov byte [ebp - 9], dl
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x4c6da3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [esi]
call fcn.004fc394
mov dl, 1
mov eax, dword [0x420e34]
call fcn.00404068
mov edx, dword [esi]
mov dword [edx + 0x4cc], eax
mov dl, 1
mov eax, dword [0x4212ac]
call fcn.00425e5c
mov edx, dword [esi]
mov dword [edx + 0x508], eax
mov dl, 1
mov eax, dword [0x4212ac]
call fcn.00425e5c
mov edx, dword [esi]
mov dword [edx + 0x4f4], eax
mov dl, 1
mov eax, dword [0x4212ac]
call fcn.00425e5c
mov edx, dword [esi]
mov dword [edx + 0x4f8], eax
mov dl, 1
mov eax, dword [0x4212ac]
call fcn.00425e5c
mov edx, dword [esi]
mov dword [edx + 0x4fc], eax
mov dl, 1
mov eax, dword [0x4212ac]
call fcn.00425e5c
mov edx, dword [esi]
mov dword [edx + 0x500], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x410]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x505f30]
mov eax, dword [eax]
cmp dword [eax + 8], 1
jne 0x4c558d
mov eax, dword [0x505f30]
mov eax, dword [eax]
xor edx, edx
call fcn.00423584
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x420]
mov edi, dword [edx + 0x4c]
sub edi, eax
test edi, edi
jle 0x4c552e
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
mov edx, dword [eax + 0x4c]
sub edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
call fcn.0045a824
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
mov edx, dword [eax + 0x44]
sar edi, 1
jns 0x4c551f
adc edi, 0
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
call fcn.0045a7bc
mov eax, dword [0x505f30]
mov eax, dword [eax]
xor edx, edx
call fcn.00423584
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [esi]
mov edx, dword [edx + 0x420]
mov edi, dword [edx + 0x48]
sub edi, eax
test edi, edi
jle 0x4c558d
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
mov edx, dword [eax + 0x48]
sub edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
call fcn.0045a7f0
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
mov edx, dword [eax + 0x40]
sar edi, 1
jns 0x4c557e
adc edi, 0
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
call fcn.0045a788
mov eax, dword [esi]
call fcn.004fc6bc
mov eax, dword [0x505ba4]
test byte [eax + 0x118], 0x20
je 0x4c55b5
mov edx, dword [0x505b30]
mov edx, dword [edx]
mov cl, 1
mov eax, dword [esi]
call fcn.004fc504
jmp 0x4c55bc
mov eax, dword [esi]
call fcn.004fc628
push 0
push 0xc
mov ecx, dword [0x505be8]
mov ecx, dword [ecx + 0x34]
mov edx, dword [0x505be8]
mov edx, dword [edx + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x404]
mov eax, dword [eax + 0x64]
call fcn.004fc014
mov eax, dword [esi]
mov eax, dword [eax + 0x404]
mov eax, dword [eax + 0x64]
movzx edx, byte [0x4c6dcc]
call fcn.0043119c
mov eax, dword [esi]
mov eax, dword [eax + 0x418]
mov eax, dword [eax + 0x64]
movzx edx, byte [0x4c6dcc]
call fcn.0043119c
mov eax, dword [0x505ba4]
test byte [eax + 0x118], 0x20
je 0x4c5633
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x274]
mov eax, dword [esi]
call fcn.0045b198
jmp 0x4c567b
mov eax, dword [0x505ba4]
test byte [eax + 0x11d], 4
je 0x4c565f
lea ecx, [ebp - 0x30]
mov edx, dword [0x505a40]
mov edx, dword [edx]
mov al, 0xa2
call fcn.004ac064
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
call fcn.0045b198
jmp 0x4c567b
lea ecx, [ebp - 0x34]
mov edx, dword [0x505ff4]
mov edx, dword [edx]
mov al, 0xa2
call fcn.004ac064
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
call fcn.0045b198
mov eax, dword [0x505ba4]
test byte [eax + 0x118], 0x20
jne 0x4c56d0
mov eax, dword [esi]
call fcn.0045aa70
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.0045aab4
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
movzx edx, byte [eax + 0x280]
or dl, byte [0x4c6dd0]
mov eax, dword [esi]
call fcn.004742bc
mov dl, 1
mov eax, dword [esi]
call fcn.004744b8
mov edx, dword [ebp - 0x24]
mov eax, dword [esi]
call fcn.00473578
mov edx, dword [ebp - 0x28]
mov eax, dword [esi]
call fcn.004735ac
mov byte [ebp - 0x3c], 0xc
mov byte [ebp - 0x3b], 0xe
mov byte [ebp - 0x3a], 0xf
mov byte [ebp - 0x39], 0x10
mov byte [ebp - 0x38], 0x12
lea edx, [ebp - 0x3c]
mov ecx, 4
mov eax, dword [esi]
call fcn.004fc450
mov edi, eax
mov edx, 0xa
mov eax, dword [esi]
call fcn.004fc78c
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x390]
mov edx, edi
call fcn.0045a7f0
mov eax, dword [esi]
mov eax, dword [eax + 0x38c]
mov edx, edi
call fcn.0045a7f0
mov eax, dword [esi]
mov eax, dword [eax + 0x388]
mov edx, edi
call fcn.0045a7f0
mov eax, dword [esi]
call fcn.0045aa70
mov ebx, eax
sub ebx, dword [ebp - 0x14]
sub ebx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x388]
mov edx, ebx
call fcn.0045a788
sub ebx, dword [ebp - 0x14]
sub ebx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x38c]
mov edx, ebx
call fcn.0045a788
sub ebx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x390]
mov edx, ebx
call fcn.0045a788
mov eax, dword [esi]
mov ebx, dword [eax + 0x400]
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x48]
mov eax, dword [0x505ba8]
mov eax, dword [eax]
call fcn.004c5368
mov edx, eax
mov eax, ebx
call fcn.004bdae0
mov eax, dword [esi]
mov eax, dword [eax + 0x400]
mov dl, 1
call fcn.004bdaec
mov eax, dword [0x505ba4]
test byte [eax + 0x11c], 4
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x400]
call fcn.004bdb34
mov eax, dword [esi]
mov eax, dword [eax + 0x400]
call fcn.004bdb60
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x434]
call fcn.004bdae0
mov eax, dword [esi]
mov eax, dword [eax + 0x434]
mov dl, 1
call fcn.004bdaec
mov eax, dword [0x505ba4]
test byte [eax + 0x11c], 4
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x434]
call fcn.004bdb34
mov eax, dword [esi]
mov ebx, dword [eax + 0x420]
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x48]
mov eax, dword [0x505f30]
mov eax, dword [eax]
call fcn.004c5368
mov edx, eax
mov eax, ebx
call fcn.004bdae0
mov eax, dword [0x505ba4]
test byte [eax + 0x11c], 4
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
call fcn.004bdb34
push 0x4c6dd4
mov eax, dword [0x509b50]
push eax
call sub.user32.dll_LoadBitmapW
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x48c]
call fcn.004bdb60
pop edx
call fcn.00436564
mov eax, dword [esi]
mov eax, dword [eax + 0x48c]
mov edx, 0xc0c0c0
call fcn.004bdb04
mov eax, dword [esi]
mov edx, dword [eax + 0x6c]
mov eax, dword [esi]
mov eax, dword [eax + 0x48c]
call fcn.004bdb1c
push ebp
call fcn.004c5124
pop ecx
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x39c]
mov edx, 1
mov eax, dword [esi]
call fcn.004c7000
lea edx, [ebp - 0x40]
mov al, 0xc9
call fcn.004c471c
lea eax, [ebp - 0x40]
mov edx, 0x4c6df4
call fcn.00406854
mov edx, dword [ebp - 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x404]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x404]
mov eax, dword [esi]
call fcn.004c4a98
mov eax, dword [esi]
mov eax, dword [eax + 0x404]
mov ecx, dword [eax + 0x44]
add ecx, dword [eax + 0x4c]
mov eax, dword [esi]
mov edx, dword [eax + 0x438]
sub ecx, dword [edx + 0x44]
mov eax, dword [esi]
call fcn.004c4aa0
lea edx, [ebp - 0x48]
mov al, 0xca
call fcn.004c471c
push dword [ebp - 0x48]
push 0x4c6e08
mov eax, dword [0x505e5c]
push dword [eax + 0x78]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004069f8
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x438]
call fcn.0045b198
mov eax, dword [esi]
mov eax, dword [eax + 0x3a8]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x348]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x1b0]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 2
mov eax, dword [esi]
call fcn.004c7000
lea edx, [ebp - 0x4c]
mov al, 0x6d
call fcn.004c471c
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x43c]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x43c]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x440]
mov ecx, edi
mov eax, dword [esi]
call fcn.004c4aa0
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x1ac]
mov eax, dword [esi]
mov eax, dword [eax + 0x474]
call fcn.0045b198
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x1b8]
mov eax, dword [esi]
mov eax, dword [eax + 0x478]
call fcn.0045b198
mov eax, dword [esi]
mov eax, dword [eax + 0x3ac]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x34c]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x1ec]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 3
mov eax, dword [esi]
call fcn.004c7000
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x1f0]
mov eax, dword [esi]
mov eax, dword [eax + 0x3e8]
call fcn.0045b198
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x1e8]
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x3e8]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0045a7bc
mov eax, dword [esi]
mov edx, dword [eax + 0x3f0]
mov eax, dword [esi]
call fcn.004c4a98
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0045a7bc
mov eax, dword [esi]
mov eax, dword [eax + 0x3b0]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x340]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x180]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 4
mov eax, dword [esi]
call fcn.004c7000
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x17c]
mov eax, dword [esi]
mov eax, dword [eax + 0x40c]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x40c]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x408]
mov ecx, edi
mov eax, dword [esi]
call fcn.004c4aa0
mov eax, dword [esi]
mov eax, dword [eax + 0x3b4]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x36c]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x310]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 5
mov eax, dword [esi]
call fcn.004c7000
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x314]
mov eax, dword [esi]
mov eax, dword [eax + 0x47c]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x47c]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x480]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0045a7bc
mov eax, dword [esi]
mov eax, dword [eax + 0x484]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0045a7bc
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x31c]
mov eax, dword [esi]
mov eax, dword [eax + 0x484]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x484]
mov eax, dword [esi]
call fcn.004c4a98
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0045a7bc
mov eax, dword [0x505f2c]
cmp byte [eax], 0
je 0x4c5c26
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
call fcn.0045a7bc
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x320]
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x498]
mov eax, dword [esi]
call fcn.004c4a98
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
call fcn.0045a7bc
jmp 0x4c5c44
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
xor edx, edx
call fcn.0045b0a8
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
xor edx, edx
call fcn.0045b0a8
mov eax, dword [esi]
mov eax, dword [eax + 0x3b8]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x358]
push eax
lea edx, [ebp - 0x50]
mov al, 0x8f
call fcn.004c471c
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 6
mov eax, dword [esi]
call fcn.004c7000
lea edx, [ebp - 0x54]
mov al, 0x91
call fcn.004c471c
mov edx, dword [ebp - 0x54]
mov eax, dword [esi]
mov eax, dword [eax + 0x464]
call fcn.0045b198
mov edx, 0xc
mov eax, dword [esi]
call fcn.004fc78c
mov edx, dword [esi]
mov ebx, dword [edx + 0x4b0]
mov edx, dword [ebx + 0x40]
add edx, dword [ebx + 0x48]
add eax, edx
mov ebx, eax
mov eax, dword [esi]
mov edi, dword [eax + 0x464]
mov eax, ebx
sub eax, dword [edi + 0x40]
mov edx, dword [edi + 0x48]
sub edx, eax
push edx
mov eax, dword [edi + 0x4c]
push eax
mov ecx, dword [edi + 0x44]
mov eax, edi
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [esi]
mov edx, dword [eax + 0x464]
mov eax, dword [esi]
call fcn.004c4a98
mov eax, dword [esi]
mov eax, dword [eax + 0x4b0]
mov eax, dword [eax + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x464]
cmp eax, dword [edx + 0x4c]
jle 0x4c5d38
mov eax, dword [esi]
mov eax, dword [eax + 0x4b0]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x464]
mov eax, dword [eax + 0x4c]
dec eax
sub edx, eax
sar edx, 1
jns 0x4c5d20
adc edx, 0
mov eax, dword [esi]
mov eax, dword [eax + 0x464]
add edx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x464]
call fcn.0045a7bc
lea edx, [ebp - 0x58]
mov al, 0x8e
call fcn.004c471c
mov edx, dword [ebp - 0x58]
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
call fcn.0045b198
mov edx, 0xd
mov eax, dword [esi]
call fcn.004fc79c
mov edx, dword [esi]
mov edi, dword [edx + 0x464]
mov edx, dword [edi + 0x44]
add edx, dword [edi + 0x4c]
dec edx
add eax, edx
push eax
mov edx, 0xc
mov eax, dword [esi]
call fcn.004fc79c
mov edx, dword [esi]
mov ebx, dword [edx + 0x4b0]
mov edx, dword [ebx + 0x44]
add edx, dword [ebx + 0x4c]
add eax, edx
pop edx
call fcn.00480a50
mov edx, dword [esi]
mov edx, dword [edx + 0x4b8]
sub eax, dword [edx + 0x44]
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
call fcn.0045a7bc
mov eax, dword [esi]
mov edx, dword [eax + 0x4b8]
mov eax, dword [esi]
call fcn.004c4a98
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
call fcn.0045a7bc
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
call fcn.00463aa8
call fcn.00480f28
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x58]
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
call fcn.0045b198
mov byte [ebp - 0x5c], 0x16
lea edx, [ebp - 0x5c]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004fc450
mov ebx, eax
push ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
mov ecx, dword [eax + 0x44]
add ecx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x398]
mov edx, dword [eax + 0x48]
sub edx, ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov edx, 0xa
mov eax, dword [esi]
call fcn.004fc78c
mov edx, dword [esi]
mov edx, dword [edx + 0x4a8]
mov edx, dword [edx + 0x40]
sub edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
sub edx, dword [eax + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
call fcn.0045a7f0
lea edx, [ebp - 0x60]
mov al, 0x2e
call fcn.004c471c
mov edx, dword [ebp - 0x60]
mov eax, dword [esi]
mov eax, dword [eax + 0x3d8]
call fcn.0045b198
mov eax, dword [esi]
mov ebx, dword [eax + 0x3d8]
mov edx, ebx
mov eax, dword [esi]
call fcn.004c4a98
mov edx, dword [ebx + 0x44]
sub edx, eax
mov eax, ebx
call fcn.0045a7bc
mov eax, dword [esi]
mov eax, dword [eax + 0x3bc]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x35c]
push eax
lea edx, [ebp - 0x64]
mov al, 0x8c
call fcn.004c471c
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 7
mov eax, dword [esi]
call fcn.004c7000
lea edx, [ebp - 0x68]
mov al, 0x8d
call fcn.004c471c
mov edx, dword [ebp - 0x68]
mov eax, dword [esi]
mov eax, dword [eax + 0x46c]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x46c]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
call fcn.0045a7bc
mov eax, dword [esi]
mov edx, dword [eax + 0x44c]
mov ecx, edi
mov eax, dword [esi]
call fcn.004c4aa0
lea edx, [ebp - 0x6c]
mov al, 0x23
call fcn.004c471c
mov edx, dword [ebp - 0x6c]
mov eax, dword [esi]
mov eax, dword [eax + 0x450]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x450]
mov eax, dword [esi]
call fcn.004c4a98
mov eax, dword [0x505c4c]
cmp byte [eax], 0
je 0x4c5fbf
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
cmp dword [eax + 8], 1
jne 0x4c5fbf
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
xor edx, edx
call fcn.0045b0a8
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov ecx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
sub ecx, dword [eax + 0x44]
mov eax, dword [esi]
mov edx, dword [eax + 0x44c]
mov eax, dword [esi]
call fcn.004c4aa0
mov eax, dword [esi]
mov eax, dword [eax + 0x3c0]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x360]
push eax
lea edx, [ebp - 0x70]
mov al, 0x96
call fcn.004c471c
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 8
mov eax, dword [esi]
call fcn.004c7000
lea edx, [ebp - 0x74]
mov al, 0x97
call fcn.004c471c
mov edx, dword [ebp - 0x74]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call fcn.0045b198
mov edx, 0xc
mov eax, dword [esi]
call fcn.004fc78c
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4b4]
mov eax, dword [eax + 0x40]
mov edx, dword [esi]
mov edx, dword [edx + 0x4b4]
add eax, dword [edx + 0x48]
add ebx, eax
mov eax, dword [esi]
mov edi, dword [eax + 0x468]
mov eax, ebx
sub eax, dword [edi + 0x40]
mov edx, dword [edi + 0x48]
sub edx, eax
push edx
mov eax, dword [edi + 0x4c]
push eax
mov ecx, dword [edi + 0x44]
mov eax, edi
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [esi]
mov edx, dword [eax + 0x468]
mov eax, dword [esi]
call fcn.004c4a98
mov eax, dword [esi]
mov eax, dword [eax + 0x4b4]
mov eax, dword [eax + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x468]
cmp eax, dword [edx + 0x4c]
jle 0x4c60bb
mov eax, dword [esi]
mov eax, dword [eax + 0x4b4]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
mov eax, dword [eax + 0x4c]
dec eax
sub edx, eax
sar edx, 1
jns 0x4c60a3
adc edx, 0
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
add edx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x468]
call fcn.0045a7bc
lea edx, [ebp - 0x78]
mov al, 0x95
call fcn.004c471c
mov edx, dword [ebp - 0x78]
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
call fcn.0045b198
mov edx, 0xd
mov eax, dword [esi]
call fcn.004fc79c
mov edx, dword [esi]
mov edx, dword [edx + 0x468]
mov edx, dword [edx + 0x44]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x468]
add edx, dword [ecx + 0x4c]
dec edx
add eax, edx
push eax
mov edx, 0xc
mov eax, dword [esi]
call fcn.004fc79c
mov edx, dword [esi]
mov edx, dword [edx + 0x4b4]
mov edx, dword [edx + 0x44]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x4b4]
add edx, dword [ecx + 0x4c]
add eax, edx
pop edx
call fcn.00480a50
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
sub edi, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
call fcn.0045a7bc
mov eax, dword [esi]
mov edx, dword [eax + 0x4bc]
mov eax, dword [esi]
call fcn.004c4a98
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3e0]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3e0]
call fcn.0045a7bc
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x58]
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
call fcn.0045b198
mov byte [ebp - 0x5c], 0x16
lea edx, [ebp - 0x5c]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004fc450
mov ebx, eax
push ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
mov ecx, dword [eax + 0x44]
add ecx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x398]
mov edx, dword [eax + 0x48]
sub edx, ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov edx, 0xa
mov eax, dword [esi]
call fcn.004fc78c
mov edx, dword [esi]
mov edx, dword [edx + 0x4ac]
mov edx, dword [edx + 0x40]
sub edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3e0]
sub edx, dword [eax + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x3e0]
call fcn.0045a7f0
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x1c8]
mov eax, dword [esi]
mov eax, dword [eax + 0x3e4]
call fcn.0045b198
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x364]
push eax
lea edx, [ebp - 0x7c]
mov al, 0x98
call fcn.004c471c
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 9
mov eax, dword [esi]
call fcn.004c7000
lea edx, [ebp - 0x80]
mov al, 0x99
call fcn.004c471c
mov edx, dword [ebp - 0x80]
mov eax, dword [esi]
mov eax, dword [eax + 0x470]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x470]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x4a0]
mov ecx, edi
mov eax, dword [esi]
call fcn.004c4aa0
mov eax, dword [esi]
mov eax, dword [eax + 0x4a0]
xor edx, edx
call fcn.004483c8
mov edx, 0x16
mov eax, dword [esi]
call fcn.004fc79c
mov edx, dword [esi]
mov edx, dword [edx + 0x4a0]
mov dword [edx + 0x2f4], eax
mov eax, dword [0x505ba4]
test byte [eax + 0x11c], 1
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x4a0]
call fcn.004a8bbc
mov eax, dword [esi]
mov eax, dword [eax + 0x3c8]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x354]
push eax
lea edx, [ebp - 0x84]
mov al, 0x81
call fcn.004c471c
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 0xa
mov eax, dword [esi]
call fcn.004c7000
mov eax, dword [esi]
mov eax, dword [eax + 0x3cc]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x350]
push eax
lea edx, [ebp - 0x88]
mov al, 0x7f
call fcn.004c471c
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 0xb
mov eax, dword [esi]
call fcn.004c7000
mov eax, dword [esi]
mov eax, dword [eax + 0x3d0]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x344]
push eax
lea edx, [ebp - 0x8c]
mov al, 0x62
call fcn.004c471c
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 0xc
mov eax, dword [esi]
call fcn.004c7000
mov eax, dword [esi]
mov eax, dword [eax + 0x3d4]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x33c]
push eax
mov eax, dword [0x505e5c]
mov eax, dword [eax + 0x178]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a0]
mov edx, 0xd
mov eax, dword [esi]
call fcn.004c7000
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x174]
mov eax, dword [esi]
mov eax, dword [eax + 0x448]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x448]
mov eax, dword [esi]
call fcn.004c4a98
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x444]
mov ecx, edi
mov eax, dword [esi]
call fcn.004c4aa0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x3a4]
mov edx, 0xe
mov eax, dword [esi]
call fcn.004c7000
push 0
push 0xc
mov ecx, dword [0x505be8]
mov ecx, dword [ecx + 0x34]
mov edx, dword [0x505be8]
mov edx, dword [edx + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
mov eax, dword [eax + 0x64]
call fcn.004fc014
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
mov eax, dword [eax + 0x64]
movzx edx, byte [0x4c6dcc]
call fcn.0043119c
lea edx, [ebp - 0x90]
mov al, 0x55
call fcn.004c471c
lea eax, [ebp - 0x90]
mov edx, 0x4c6df4
call fcn.00406854
mov edx, dword [ebp - 0x90]
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x494]
mov eax, dword [esi]
call fcn.004c4a98
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
mov edx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
add edx, dword [eax + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x428]
call fcn.0045a7bc
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x370]
mov eax, dword [esi]
mov eax, dword [eax + 0x42c]
call fcn.0045b198
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0x1cc]
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.0045b198
mov edx, 0x16
mov eax, dword [esi]
call fcn.004fc79c
mov edx, dword [esi]
mov edx, dword [edx + 0x4a4]
mov dword [edx + 0x2f4], eax
mov eax, dword [0x505e5c]
cmp dword [eax + 0x24], 0
je 0x4c6546
push 0x4c6e20
mov eax, dword [0x505e5c]
push dword [eax + 0x24]
push 0x4c6e20
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.004069f8
mov edx, dword [ebp - 0x94]
mov eax, dword [esi]
mov eax, dword [eax + 0x454]
call fcn.0045b198
jmp 0x4c6555
mov eax, dword [esi]
mov eax, dword [eax + 0x454]
xor edx, edx
call fcn.0045b198
mov eax, dword [0x505a80]
cmp dword [eax], 0
je 0x4c6583
mov eax, dword [esi]
mov eax, dword [eax + 0x440]
mov dl, 1
call fcn.004aa570
mov edx, dword [0x505a80]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x440]
call fcn.004aa710
mov eax, dword [0x505a50]
cmp dword [eax], 0
je 0x4c65b1
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov dl, 1
call fcn.004aa570
mov edx, dword [0x505a50]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
call fcn.004aa710
mov eax, dword [0x505e30]
cmp dword [eax], 0
je 0x4c65df
mov eax, dword [esi]
mov eax, dword [eax + 0x444]
mov dl, 1
call fcn.004aa570
mov edx, dword [0x505e30]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x444]
call fcn.004aa710
push 0
mov eax, dword [esi]
call fcn.00463aa8
push eax
call sub.user32.dll_GetSystemMenu
mov ebx, eax
push 0
push 0
push 0x800
push ebx
call sub.user32.dll_AppendMenuW
mov eax, dword [0x505e5c]
mov eax, dword [eax]
call fcn.004064d4
push eax
push 0x270f
push 0
push ebx
call sub.user32.dll_AppendMenuW
mov eax, dword [esi]
call fcn.004c70f4
mov eax, dword [0x505ba4]
cmp byte [eax + 0x10e], 2
je 0x4c664b
mov eax, dword [0x505ba4]
cmp byte [eax + 0x10e], 0
jne 0x4c6647
mov eax, dword [esi]
cmp dword [eax + 0x51c], 0
jne 0x4c664b
xor eax, eax
jmp 0x4c664d
mov al, 1
mov edx, dword [esi]
mov byte [edx + 0x504], al
mov eax, dword [0x505ba4]
cmp byte [eax + 0x10f], 2
je 0x4c6680
mov eax, dword [0x505ba4]
cmp byte [eax + 0x10f], 0
jne 0x4c667c
mov eax, dword [esi]
cmp dword [eax + 0x4dc], 0
jne 0x4c6680
xor eax, eax
jmp 0x4c6682
mov al, 1
mov edx, dword [esi]
mov byte [edx + 0x505], al
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x19], 0
mov eax, dword [0x505ba4]
test byte [eax + 0x11b], 0x10
je 0x4c6765
mov eax, dword [esi]
cmp dword [eax + 0x4e4], 0
jne 0x4c6726
lea edx, [ebp - 0x98]
mov eax, dword [0x505ba4]
mov eax, dword [eax + 0x44]
call fcn.004df100
mov edx, dword [ebp - 0x98]
mov eax, dword [esi]
mov eax, dword [eax + 0x480]
call fcn.0045b198
lea edx, [ebp - 0x9c]
mov eax, dword [0x505ba4]
mov eax, dword [eax + 0x48]
call fcn.004df100
mov edx, dword [ebp - 0x9c]
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
call fcn.0045b198
lea edx, [ebp - 0xa0]
mov eax, dword [0x505ba4]
mov eax, dword [eax + 0x4c]
call fcn.004df100
mov edx, dword [ebp - 0xa0]
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
call fcn.0045b198
jmp 0x4c6765
mov eax, dword [esi]
mov edx, dword [eax + 0x4e4]
mov eax, dword [esi]
mov eax, dword [eax + 0x480]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x4e8]
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
call fcn.0045b198
mov eax, dword [esi]
mov edx, dword [eax + 0x4ec]
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
call fcn.0045b198
mov eax, dword [0x505ba4]
test byte [eax + 0x118], 2
je 0x4c681c
lea edx, [ebp - 0xa4]
mov eax, dword [0x505ba4]
mov eax, dword [eax + 0x28]
call fcn.004df100
mov edx, dword [ebp - 0xa4]
mov eax, dword [esi]
add eax, 0x4d4
call fcn.00406448
mov eax, dword [0x505ee8]
cmp dword [eax], 0
je 0x4c67b7
lea edx, [ebp - 8]
mov eax, dword [0x505ee8]
mov eax, dword [eax]
call fcn.004df330
jmp 0x4c67dd
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x51c]
call fcn.0040649c
cmp dword [ebp - 8], 0
jne 0x4c67dd
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x4d4]
call fcn.0040649c
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.0047e898
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.0047ec60
mov edx, dword [ebp - 0xa8]
lea eax, [ebp - 8]
call fcn.0040649c
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
mov edx, dword [ebp - 8]
call fcn.0045b198
jmp 0x4c6831
mov edx, dword [0x505ae0]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
call fcn.0045b198
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
cmp dword [eax + 8], 0
jle 0x4c696f
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov edx, dword [eax]
call dword [edx + 0xe8]
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c68e8
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov edx, edi
call fcn.00423584
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
call fcn.004df100
mov edx, dword [ebp - 0xb0]
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov eax, dword [eax + 0x29c]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4c68e2
mov eax, dword [0x505b14]
cmp dword [eax], 0
je 0x4c68e2
mov edx, dword [0x505b14]
mov edx, dword [edx]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.0040c2bc
test eax, eax
jne 0x4c68e2
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
jne 0x4c68e2
mov byte [ebp - 0x19], 1
inc edi
dec dword [ebp - 0x2c]
jne 0x4c686d
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4c6942
mov eax, dword [esi]
cmp dword [eax + 0x4e0], 0
je 0x4c6942
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c6942
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov edx, edi
call fcn.00423584
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x4e0]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.0040c2bc
test eax, eax
jne 0x4c693c
mov dword [ebp - 0x18], edi
jmp 0x4c6942
inc edi
dec dword [ebp - 0x2c]
jne 0x4c690f
cmp dword [ebp - 0x18], 0xffffffff
je 0x4c695d
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
jmp 0x4c696f
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
mov edx, dword [eax]
call dword [edx + 0xe8]
mov eax, dword [0x505ba4]
test byte [eax + 0x11a], 0x20
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
call fcn.004a8b30
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c6a69
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0x10]
mov edx, edi
call fcn.00423584
mov ebx, eax
test byte [ebx + 0x35], 8
je 0x4c6a03
movzx eax, byte [ebx + 0x1c]
push eax
push 0
test byte [ebx + 0x35], 1
setne al
xor al, 1
push eax
push ebx
lea edx, [ebp - 0xb4]
mov eax, dword [ebx + 4]
call fcn.004df100
mov edx, dword [ebp - 0xb4]
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
xor ecx, ecx
call fcn.004a6df4
jmp 0x4c6a47
movzx eax, byte [ebx + 0x1c]
push eax
push 0
test byte [ebx + 0x35], 1
setne al
xor al, 1
push eax
movzx eax, byte [ebx + 0x20]
push eax
test byte [ebx + 0x35], 0x10
setne al
xor al, 1
push eax
push ebx
lea edx, [ebp - 0xb8]
mov eax, dword [ebx + 4]
call fcn.004df100
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
xor ecx, ecx
call fcn.004a6cf4
cmp dword [ebx + 0x3a], 0
jne 0x4c6a56
cmp dword [ebx + 0x36], 0x100000
jb 0x4c6a5f
mov eax, dword [esi]
mov byte [eax + 0x510], 1
inc edi
dec dword [ebp - 0x2c]
jne 0x4c69b5
cmp byte [ebp - 0x19], 0
jne 0x4c6b01
mov eax, dword [0x506050]
cmp byte [eax], 0
je 0x4c6b01
mov eax, dword [0x505c4c]
cmp byte [eax], 0
je 0x4c6b01
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4c6ba2
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov edx, edi
call fcn.00423584
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
je 0x4c6af6
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [esi]
call fcn.004c7f2c
mov edx, dword [0x506040]
mov edx, dword [edx]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004c7dc8
jmp 0x4c6ba2
inc edi
dec dword [ebp - 0x2c]
jne 0x4c6aa5
jmp 0x4c6ba2
cmp dword [ebp - 0x18], 0xffffffff
je 0x4c6b74
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
call fcn.00423584
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
je 0x4c6b64
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.00423584
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004c7f2c
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [esi]
call fcn.004c7f2c
mov eax, dword [esi]
mov ecx, dword [eax + 0x4f8]
mov eax, dword [esi]
mov edx, dword [eax + 0x4f4]
mov eax, dword [esi]
call fcn.004c7dc8
jmp 0x4c6ba2
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004c7f2c
jmp 0x4c6ba2
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
cmp dword [eax + 8], 0
jle 0x4c6ba2
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.00423584
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004c7f2c
mov eax, dword [esi]
call fcn.004c4e6c
mov eax, dword [esi]
call fcn.004c4bcc
mov eax, dword [0x505c4c]
cmp byte [eax], 0
je 0x4c6c15
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, eax
mov eax, dword [0x505ad0]
mov eax, dword [eax + 0xc]
call fcn.00423584
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
jne 0x4c6bf3
mov eax, dword [0x505ba4]
test byte [eax + 0x11a], 0x10
je 0x4c6c04
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
mov dl, 1
call fcn.0045b0a8
jmp 0x4c6c24
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
xor edx, edx
call fcn.0045b0a8
jmp 0x4c6c24
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
xor edx, edx
call fcn.0045b0a8
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
movzx edx, byte [eax + 0x57]
mov eax, dword [esi]
mov eax, dword [eax + 0x450]
call fcn.0045b0a8
mov eax, dword [0x505c4c]
cmp byte [eax], 0
je 0x4c6c72
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, dword [esi]
mov dword [edx + 0x50c], eax
push 0
mov eax, dword [esi]
mov edx, dword [eax + 0x508]
xor ecx, ecx
mov eax, dword [esi]
call fcn.004c8090
lea edx, [ebp - 0xbc]
mov eax, dword [0x505ba4]
mov eax, dword [eax + 0x2c]
call fcn.004df100
mov edx, dword [ebp - 0xbc]
mov eax, dword [esi]
add eax, 0x4d8
call fcn.00406448
mov eax, dword [0x505ce0]
cmp dword [eax], 0
je 0x4c6cbd
mov eax, dword [esi]
cmp byte [eax + 0x505], 0
jne 0x4c6cbd
lea edx, [ebp - 8]
mov eax, dword [0x505ce0]
mov eax, dword [eax]
call fcn.004df330
jmp 0x4c6cfe
mov eax, dword [esi]
cmp dword [eax + 0x4dc], 0
je 0x4c6cdc
mov eax, dword [esi]
mov eax, dword [eax + 0x4dc]
mov edx, 0x4c6e30
call fcn.00406be4
jne 0x4c6cee
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x4d8]
call fcn.0040649c
jmp 0x4c6cfe
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x4dc]
call fcn.0040649c
mov eax, dword [esi]
mov eax, dword [eax + 0x3e0]
mov edx, dword [ebp - 8]
call fcn.0045b198
mov eax, dword [0x505ba4]
test byte [eax + 0x118], 4
je 0x4c6d54
mov eax, dword [0x505d38]
cmp byte [eax], 0
jne 0x4c6d31
mov eax, dword [esi]
cmp byte [eax + 0x4f0], 0
je 0x4c6d43
mov eax, dword [esi]
mov eax, dword [eax + 0x3e4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov eax, dword [eax + 0x3e4]
mov dl, 1
call fcn.0045b0a8
jmp 0x4c6d63
mov eax, dword [esi]
mov eax, dword [eax + 0x3e4]
xor edx, edx
call fcn.0045b0a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6daa
lea eax, [ebp - 0xbc]
mov edx, 0x18
call fcn.00406440
lea eax, [ebp - 0x58]
mov edx, 7
call fcn.00406440
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00406440
lea eax, [ebp - 8]
call fcn.00406438
ret