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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x51047d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x510497
add esp, 0xfffffff0
call fcn.0040583c
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 0x511dc8
push dword fs:[eax]
mov dword fs:[eax], esp
nop
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [esi]
call fcn.0054ad34
mov dl, 1
mov eax, dword [0x429514]
call fcn.004052f0
mov edx, dword [esi]
mov dword [edx + 0x4dc], eax
mov dl, 1
mov eax, dword [0x42badc]
call fcn.00437e0c
mov edx, dword [esi]
mov dword [edx + 0x518], eax
mov dl, 1
mov eax, dword [0x42badc]
call fcn.00437e0c
mov edx, dword [esi]
mov dword [edx + 0x504], eax
mov dl, 1
mov eax, dword [0x42badc]
call fcn.00437e0c
mov edx, dword [esi]
mov dword [edx + 0x508], eax
mov dl, 1
mov eax, dword [0x42badc]
call fcn.00437e0c
mov edx, dword [esi]
mov dword [edx + 0x50c], eax
mov dl, 1
mov eax, dword [0x42badc]
call fcn.00437e0c
mov edx, dword [esi]
mov dword [edx + 0x510], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x420]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xd8]
mov eax, dword [0x559ed0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x430]
mov edi, dword [edx + 0x4c]
sub edi, eax
test edi, edi
jle 0x5105a0
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
mov edx, dword [eax + 0x4c]
sub edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.004891b4
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
mov edx, dword [eax + 0x44]
sar edi, 1
jns 0x510591
adc edi, 0
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.0048914c
mov eax, dword [0x559ed0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [esi]
mov edx, dword [edx + 0x430]
mov edi, dword [edx + 0x48]
sub edi, eax
test edi, edi
jle 0x5105f8
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
mov edx, dword [eax + 0x48]
sub edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.00489180
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
mov edx, dword [eax + 0x40]
sar edi, 1
jns 0x5105e9
adc edi, 0
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.00489118
mov eax, dword [esi]
call fcn.0054b060
mov eax, dword [0x559fc8]
test byte [eax + 0x117], 0x20
je 0x510620
mov edx, dword [0x559f50]
mov edx, dword [edx]
mov cl, 1
mov eax, dword [esi]
call fcn.0054aea4
jmp 0x510627
mov eax, dword [esi]
call fcn.0054afcc
push 0
push 0xc
mov ecx, dword [0x55a008]
mov ecx, dword [ecx + 0x34]
mov edx, dword [0x55a008]
mov edx, dword [edx + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x414]
mov eax, dword [eax + 0x64]
call fcn.0054a9a8
mov eax, dword [esi]
mov eax, dword [eax + 0x414]
mov eax, dword [eax + 0x64]
movzx edx, byte [0x511df0]
call fcn.00450670
mov eax, dword [esi]
mov eax, dword [eax + 0x428]
mov eax, dword [eax + 0x64]
movzx edx, byte [0x511df0]
call fcn.00450670
mov eax, dword [0x559fc8]
test byte [eax + 0x117], 0x20
je 0x51069e
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x274]
mov eax, dword [esi]
call fcn.00489b78
jmp 0x5106ba
lea ecx, [ebp - 0x30]
mov edx, dword [0x55a45c]
mov edx, dword [edx]
mov al, 0xa2
call fcn.004f2c88
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
call fcn.00489b78
mov eax, dword [0x559fc8]
test byte [eax + 0x117], 0x20
jne 0x51070f
mov eax, dword [esi]
call fcn.0048942c
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.0048946c
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
movzx edx, byte [eax + 0x298]
or dl, byte [0x511df4]
mov eax, dword [esi]
call fcn.004b0b90
mov dl, 1
mov eax, dword [esi]
call fcn.004b0d8c
mov edx, dword [ebp - 0x24]
mov eax, dword [esi]
call fcn.004afdf8
mov edx, dword [ebp - 0x28]
mov eax, dword [esi]
call fcn.004afe2c
mov byte [ebp - 0x38], 0xc
mov byte [ebp - 0x37], 0xe
mov byte [ebp - 0x36], 0xf
mov byte [ebp - 0x35], 0x10
mov byte [ebp - 0x34], 0x12
lea edx, [ebp - 0x38]
mov ecx, 4
mov eax, dword [esi]
call fcn.0054adf0
mov ebx, eax
mov edx, 0xa
mov eax, dword [esi]
call fcn.0054b134
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3a0]
mov edx, ebx
call fcn.00489180
mov eax, dword [esi]
mov eax, dword [eax + 0x39c]
mov edx, ebx
call fcn.00489180
mov eax, dword [esi]
mov eax, dword [eax + 0x398]
mov edx, ebx
call fcn.00489180
mov eax, dword [esi]
call fcn.0048942c
sub eax, edi
sub eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x398]
mov edx, dword [ebp - 0x14]
call fcn.00489118
sub dword [ebp - 0x14], edi
sub dword [ebp - 0x14], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x39c]
mov edx, dword [ebp - 0x14]
call fcn.00489118
sub dword [ebp - 0x14], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x3a0]
mov edx, dword [ebp - 0x14]
call fcn.00489118
mov edx, dword [0x55a300]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x410]
call fcn.00506484
mov eax, dword [esi]
mov eax, dword [eax + 0x410]
mov dl, 1
call fcn.00506490
mov eax, dword [0x559fc8]
test byte [eax + 0x11b], 4
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x410]
call fcn.005064d8
mov edx, dword [0x55a300]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x444]
call fcn.00506484
mov eax, dword [esi]
mov eax, dword [eax + 0x444]
mov dl, 1
call fcn.00506490
mov eax, dword [0x559fc8]
test byte [eax + 0x11b], 4
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x444]
call fcn.005064d8
mov edx, dword [0x559ed0]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.00506484
mov eax, dword [0x559fc8]
test byte [eax + 0x11b], 4
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
call fcn.005064d8
push 0x511df8
mov eax, dword [0x55dc40]
push eax
call sub.user32.dll_LoadBitmapW
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
call fcn.00506504
pop edx
call fcn.0045620c
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
mov edx, 0xc0c0c0
call fcn.005064a8
mov eax, dword [esi]
mov edx, dword [eax + 0x6c]
mov eax, dword [esi]
mov eax, dword [eax + 0x49c]
call fcn.005064c0
push ebp
call fcn.00510230
pop ecx
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x3ac]
mov edx, 1
mov eax, dword [esi]
call fcn.00512024
lea edx, [ebp - 0x3c]
mov al, 0xc9
call fcn.0050f808
lea eax, [ebp - 0x3c]
mov edx, 0x511e18
call fcn.00407bd4
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x414]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x414]
mov eax, dword [esi]
call fcn.0050fb94
mov eax, dword [esi]
mov eax, dword [eax + 0x414]
mov ecx, dword [eax + 0x44]
add ecx, dword [eax + 0x4c]
mov eax, dword [esi]
mov edx, dword [eax + 0x448]
sub ecx, dword [edx + 0x44]
mov eax, dword [esi]
call fcn.0050fba0
lea edx, [ebp - 0x44]
mov al, 0xca
call fcn.0050f808
push dword [ebp - 0x44]
push 0x511e2c
mov eax, dword [0x55a2a4]
push dword [eax + 0x78]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00407d78
mov edx, dword [ebp - 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x448]
call fcn.00489b78
mov eax, dword [esi]
mov eax, dword [eax + 0x3b8]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x348]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x1b0]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 2
mov eax, dword [esi]
call fcn.00512024
lea edx, [ebp - 0x48]
mov al, 0x6d
call fcn.0050f808
mov edx, dword [ebp - 0x48]
mov eax, dword [esi]
mov eax, dword [eax + 0x44c]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x44c]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x450]
mov ecx, edi
mov eax, dword [esi]
call fcn.0050fba0
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x1ac]
mov eax, dword [esi]
mov eax, dword [eax + 0x484]
call fcn.00489b78
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x1b8]
mov eax, dword [esi]
mov eax, dword [eax + 0x488]
call fcn.00489b78
mov eax, dword [esi]
mov eax, dword [eax + 0x3bc]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x34c]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x1ec]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 3
mov eax, dword [esi]
call fcn.00512024
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x1f0]
mov eax, dword [esi]
mov eax, dword [eax + 0x3f8]
call fcn.00489b78
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x1e8]
mov eax, dword [esi]
mov eax, dword [eax + 0x400]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x3f8]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x400]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0048914c
mov eax, dword [esi]
mov edx, dword [eax + 0x400]
mov eax, dword [esi]
call fcn.0050fb94
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3fc]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0048914c
mov eax, dword [esi]
mov eax, dword [eax + 0x3c0]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x340]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x180]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 4
mov eax, dword [esi]
call fcn.00512024
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x17c]
mov eax, dword [esi]
mov eax, dword [eax + 0x41c]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x41c]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x418]
mov ecx, edi
mov eax, dword [esi]
call fcn.0050fba0
mov eax, dword [esi]
mov eax, dword [eax + 0x3c4]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x36c]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x310]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 5
mov eax, dword [esi]
call fcn.00512024
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x314]
mov eax, dword [esi]
mov eax, dword [eax + 0x48c]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x48c]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x490]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0048914c
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0048914c
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x31c]
mov eax, dword [esi]
mov eax, dword [eax + 0x494]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x494]
mov eax, dword [esi]
call fcn.0050fb94
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
mov edx, dword [eax + 0x44]
add edx, edi
call fcn.0048914c
mov eax, dword [0x55a38c]
cmp byte [eax], 0
je 0x510c46
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
call fcn.0048914c
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x320]
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x4a8]
mov eax, dword [esi]
call fcn.0050fb94
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
call fcn.0048914c
jmp 0x510c64
mov eax, dword [esi]
mov eax, dword [eax + 0x4a8]
xor edx, edx
call fcn.00489a60
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
xor edx, edx
call fcn.00489a60
mov eax, dword [esi]
mov eax, dword [eax + 0x3c8]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x358]
push eax
lea edx, [ebp - 0x4c]
mov al, 0x8f
call fcn.0050f808
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 6
mov eax, dword [esi]
call fcn.00512024
lea edx, [ebp - 0x50]
mov al, 0x91
call fcn.0050f808
mov edx, dword [ebp - 0x50]
mov eax, dword [esi]
mov eax, dword [eax + 0x474]
call fcn.00489b78
mov edx, 0xc
mov eax, dword [esi]
call fcn.0054b134
mov edx, dword [esi]
mov ebx, dword [edx + 0x4c0]
mov edx, dword [ebx + 0x40]
add edx, dword [ebx + 0x48]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x474]
mov eax, dword [ebp - 0x14]
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, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [esi]
mov edx, dword [eax + 0x474]
mov eax, dword [esi]
call fcn.0050fb94
mov eax, dword [esi]
mov eax, dword [eax + 0x4c0]
mov eax, dword [eax + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x474]
cmp eax, dword [edx + 0x4c]
jle 0x510d5b
mov eax, dword [esi]
mov eax, dword [eax + 0x4c0]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x474]
mov eax, dword [eax + 0x4c]
dec eax
sub edx, eax
sar edx, 1
jns 0x510d43
adc edx, 0
mov eax, dword [esi]
mov eax, dword [eax + 0x474]
add edx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x474]
call fcn.0048914c
lea edx, [ebp - 0x54]
mov al, 0x8e
call fcn.0050f808
mov edx, dword [ebp - 0x54]
mov eax, dword [esi]
mov eax, dword [eax + 0x4c8]
call fcn.00489b78
mov edx, 0xd
mov eax, dword [esi]
call fcn.0054b148
mov edx, dword [esi]
mov edi, dword [edx + 0x474]
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.0054b148
mov edx, dword [esi]
mov ebx, dword [edx + 0x4c0]
mov edx, dword [ebx + 0x44]
add edx, dword [ebx + 0x4c]
add eax, edx
pop edx
call fcn.004bdff0
mov edx, dword [esi]
mov edx, dword [edx + 0x4c8]
sub eax, dword [edx + 0x44]
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4c8]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x4c8]
call fcn.0048914c
mov eax, dword [esi]
mov edx, dword [eax + 0x4c8]
mov eax, dword [esi]
call fcn.0050fb94
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
call fcn.0048914c
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
call fcn.00492a8c
call fcn.004be4cc
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x58]
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
call fcn.00489b78
mov byte [ebp - 0x58], 0x16
lea edx, [ebp - 0x58]
xor ecx, ecx
mov eax, dword [esi]
call fcn.0054adf0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
mov ecx, dword [eax + 0x44]
add ecx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3a8]
mov edx, dword [eax + 0x48]
sub edx, dword [ebp - 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 0x4b8]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov edx, 0xa
mov eax, dword [esi]
call fcn.0054b134
mov edx, dword [esi]
mov edx, dword [edx + 0x4b8]
mov edx, dword [edx + 0x40]
sub edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
sub edx, dword [eax + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
call fcn.00489180
lea edx, [ebp - 0x5c]
mov al, 0x2e
call fcn.0050f808
mov edx, dword [ebp - 0x5c]
mov eax, dword [esi]
mov eax, dword [eax + 0x3e8]
call fcn.00489b78
mov eax, dword [esi]
mov ebx, dword [eax + 0x3e8]
mov edx, ebx
mov eax, dword [esi]
call fcn.0050fb94
mov edx, dword [ebx + 0x44]
sub edx, eax
mov eax, ebx
call fcn.0048914c
mov eax, dword [esi]
mov eax, dword [eax + 0x3cc]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x35c]
push eax
lea edx, [ebp - 0x60]
mov al, 0x8c
call fcn.0050f808
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 7
mov eax, dword [esi]
call fcn.00512024
lea edx, [ebp - 0x64]
mov al, 0x8d
call fcn.0050f808
mov edx, dword [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax + 0x47c]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x47c]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
call fcn.0048914c
mov eax, dword [esi]
mov edx, dword [eax + 0x45c]
mov ecx, edi
mov eax, dword [esi]
call fcn.0050fba0
lea edx, [ebp - 0x68]
mov al, 0x23
call fcn.0050f808
mov edx, dword [ebp - 0x68]
mov eax, dword [esi]
mov eax, dword [eax + 0x460]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x460]
mov eax, dword [esi]
call fcn.0050fb94
mov eax, dword [0x55a074]
cmp byte [eax], 0
je 0x510fe7
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 8], 1
jne 0x510fe7
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
xor edx, edx
call fcn.00489a60
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov ecx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
sub ecx, dword [eax + 0x44]
mov eax, dword [esi]
mov edx, dword [eax + 0x45c]
mov eax, dword [esi]
call fcn.0050fba0
mov eax, dword [esi]
mov eax, dword [eax + 0x3d0]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x360]
push eax
lea edx, [ebp - 0x6c]
mov al, 0x96
call fcn.0050f808
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 8
mov eax, dword [esi]
call fcn.00512024
lea edx, [ebp - 0x70]
mov al, 0x97
call fcn.0050f808
mov edx, dword [ebp - 0x70]
mov eax, dword [esi]
mov eax, dword [eax + 0x478]
call fcn.00489b78
mov edx, 0xc
mov eax, dword [esi]
call fcn.0054b134
mov edx, dword [esi]
mov edx, dword [edx + 0x4c4]
mov edx, dword [edx + 0x40]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x4c4]
add edx, dword [ecx + 0x48]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x478]
mov eax, dword [ebp - 0x14]
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, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [esi]
mov edx, dword [eax + 0x478]
mov eax, dword [esi]
call fcn.0050fb94
mov eax, dword [esi]
mov eax, dword [eax + 0x4c4]
mov eax, dword [eax + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x478]
cmp eax, dword [edx + 0x4c]
jle 0x5110e6
mov eax, dword [esi]
mov eax, dword [eax + 0x4c4]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x4c]
dec eax
sub edx, eax
sar edx, 1
jns 0x5110ce
adc edx, 0
mov eax, dword [esi]
mov eax, dword [eax + 0x478]
add edx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x478]
call fcn.0048914c
lea edx, [ebp - 0x74]
mov al, 0x95
call fcn.0050f808
mov edx, dword [ebp - 0x74]
mov eax, dword [esi]
mov eax, dword [eax + 0x4cc]
call fcn.00489b78
mov edx, 0xd
mov eax, dword [esi]
call fcn.0054b148
mov edx, dword [esi]
mov edx, dword [edx + 0x478]
mov edx, dword [edx + 0x44]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x478]
add edx, dword [ecx + 0x4c]
dec edx
add eax, edx
push eax
mov edx, 0xc
mov eax, dword [esi]
call fcn.0054b148
mov edx, dword [esi]
mov edx, dword [edx + 0x4c4]
mov edx, dword [edx + 0x44]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x4c4]
add edx, dword [ecx + 0x4c]
add eax, edx
pop edx
call fcn.004bdff0
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4cc]
sub edi, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x4cc]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x4cc]
call fcn.0048914c
mov eax, dword [esi]
mov edx, dword [eax + 0x4cc]
mov eax, dword [esi]
call fcn.0050fb94
add edi, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
mov edx, dword [eax + 0x44]
add edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
call fcn.0048914c
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x58]
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
call fcn.00489b78
mov byte [ebp - 0x58], 0x16
lea edx, [ebp - 0x58]
xor ecx, ecx
mov eax, dword [esi]
call fcn.0054adf0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
mov ecx, dword [eax + 0x44]
add ecx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x3a8]
mov edx, dword [eax + 0x48]
sub edx, dword [ebp - 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 0x4bc]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov edx, 0xa
mov eax, dword [esi]
call fcn.0054b134
mov edx, dword [esi]
mov edx, dword [edx + 0x4bc]
mov edx, dword [edx + 0x40]
sub edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
sub edx, dword [eax + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
call fcn.00489180
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x1c8]
mov eax, dword [esi]
mov eax, dword [eax + 0x3f4]
call fcn.00489b78
mov eax, dword [esi]
mov eax, dword [eax + 0x3d4]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x364]
push eax
lea edx, [ebp - 0x78]
mov al, 0x98
call fcn.0050f808
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 9
mov eax, dword [esi]
call fcn.00512024
lea edx, [ebp - 0x7c]
mov al, 0x99
call fcn.0050f808
mov edx, dword [ebp - 0x7c]
mov eax, dword [esi]
mov eax, dword [eax + 0x480]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x480]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x4b0]
mov ecx, edi
mov eax, dword [esi]
call fcn.0050fba0
mov eax, dword [esi]
mov eax, dword [eax + 0x4b0]
xor edx, edx
call fcn.0046a4ec
mov edx, 0x16
mov eax, dword [esi]
call fcn.0054b148
mov edx, dword [esi]
mov edx, dword [edx + 0x4b0]
mov dword [edx + 0x304], eax
mov eax, dword [0x559fc8]
test byte [eax + 0x11b], 1
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x4b0]
call fcn.004ee7d4
mov eax, dword [esi]
mov eax, dword [eax + 0x3d8]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x354]
push eax
lea edx, [ebp - 0x80]
mov al, 0x81
call fcn.0050f808
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 0xa
mov eax, dword [esi]
call fcn.00512024
mov eax, dword [esi]
mov eax, dword [eax + 0x3dc]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x350]
push eax
lea edx, [ebp - 0x84]
mov al, 0x7f
call fcn.0050f808
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 0xb
mov eax, dword [esi]
call fcn.00512024
mov eax, dword [esi]
mov eax, dword [eax + 0x3e0]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x344]
push eax
lea edx, [ebp - 0x88]
mov al, 0x62
call fcn.0050f808
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 0xc
mov eax, dword [esi]
call fcn.00512024
mov eax, dword [esi]
mov eax, dword [eax + 0x3e4]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x33c]
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x178]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b0]
mov edx, 0xd
mov eax, dword [esi]
call fcn.00512024
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x174]
mov eax, dword [esi]
mov eax, dword [eax + 0x458]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x458]
mov eax, dword [esi]
call fcn.0050fb94
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x454]
mov ecx, edi
mov eax, dword [esi]
call fcn.0050fba0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x3b4]
mov edx, 0xe
mov eax, dword [esi]
call fcn.00512024
push 0
push 0xc
mov ecx, dword [0x55a008]
mov ecx, dword [ecx + 0x34]
mov edx, dword [0x55a008]
mov edx, dword [edx + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x4a4]
mov eax, dword [eax + 0x64]
call fcn.0054a9a8
mov eax, dword [esi]
mov eax, dword [eax + 0x4a4]
mov eax, dword [eax + 0x64]
movzx edx, byte [0x511df0]
call fcn.00450670
lea edx, [ebp - 0x8c]
mov al, 0x55
call fcn.0050f808
lea eax, [ebp - 0x8c]
mov edx, 0x511e18
call fcn.00407bd4
mov edx, dword [ebp - 0x8c]
mov eax, dword [esi]
mov eax, dword [eax + 0x4a4]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x4a4]
mov eax, dword [esi]
call fcn.0050fb94
mov eax, dword [esi]
mov eax, dword [eax + 0x4a4]
mov edx, dword [eax + 0x44]
mov eax, dword [esi]
mov eax, dword [eax + 0x4a4]
add edx, dword [eax + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0x438]
call fcn.0048914c
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x370]
mov eax, dword [esi]
mov eax, dword [eax + 0x43c]
call fcn.00489b78
mov edx, dword [0x55a2a4]
mov edx, dword [edx + 0x1cc]
mov eax, dword [esi]
mov eax, dword [eax + 0x440]
call fcn.00489b78
mov edx, 0x16
mov eax, dword [esi]
call fcn.0054b148
mov edx, dword [esi]
mov edx, dword [edx + 0x4b4]
mov dword [edx + 0x304], eax
mov eax, dword [0x55a2a4]
cmp dword [eax + 0x24], 0
je 0x511570
push 0x511e44
mov eax, dword [0x55a2a4]
push dword [eax + 0x24]
push 0x511e44
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00407d78
mov edx, dword [ebp - 0x90]
mov eax, dword [esi]
mov eax, dword [eax + 0x464]
call fcn.00489b78
jmp 0x51157f
mov eax, dword [esi]
mov eax, dword [eax + 0x464]
xor edx, edx
call fcn.00489b78
mov eax, dword [0x559e88]
cmp dword [eax], 0
je 0x5115ad
mov eax, dword [esi]
mov eax, dword [eax + 0x450]
mov dl, 1
call fcn.004f0348
mov edx, dword [0x559e88]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x450]
call fcn.004f04e8
mov eax, dword [0x559e54]
cmp dword [eax], 0
je 0x5115db
mov eax, dword [esi]
mov eax, dword [eax + 0x418]
mov dl, 1
call fcn.004f0348
mov edx, dword [0x559e54]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x418]
call fcn.004f04e8
mov eax, dword [0x55a274]
cmp dword [eax], 0
je 0x511609
mov eax, dword [esi]
mov eax, dword [eax + 0x454]
mov dl, 1
call fcn.004f0348
mov edx, dword [0x55a274]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x454]
call fcn.004f04e8
push 0
mov eax, dword [esi]
call fcn.00492a8c
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 [0x55a2a4]
mov eax, dword [eax]
call fcn.00407854
push eax
push 0x270f
push 0
push ebx
call sub.user32.dll_AppendMenuW
mov eax, dword [esi]
call fcn.0051211c
mov eax, dword [0x559fc8]
cmp byte [eax + 0x10d], 2
je 0x511675
mov eax, dword [0x559fc8]
cmp byte [eax + 0x10d], 0
jne 0x511671
mov eax, dword [esi]
cmp dword [eax + 0x52c], 0
jne 0x511675
xor eax, eax
jmp 0x511677
mov al, 1
mov edx, dword [esi]
mov byte [edx + 0x514], al
mov eax, dword [0x559fc8]
cmp byte [eax + 0x10e], 2
je 0x5116aa
mov eax, dword [0x559fc8]
cmp byte [eax + 0x10e], 0
jne 0x5116a6
mov eax, dword [esi]
cmp dword [eax + 0x4ec], 0
jne 0x5116aa
xor eax, eax
jmp 0x5116ac
mov al, 1
mov edx, dword [esi]
mov byte [edx + 0x515], al
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x19], 0
mov eax, dword [0x559fc8]
test byte [eax + 0x11a], 0x10
je 0x51178f
mov eax, dword [esi]
cmp dword [eax + 0x4f4], 0
jne 0x511750
lea edx, [ebp - 0x94]
mov eax, dword [0x559fc8]
mov eax, dword [eax + 0x44]
call fcn.0052c2a0
mov edx, dword [ebp - 0x94]
mov eax, dword [esi]
mov eax, dword [eax + 0x490]
call fcn.00489b78
lea edx, [ebp - 0x98]
mov eax, dword [0x559fc8]
mov eax, dword [eax + 0x48]
call fcn.0052c2a0
mov edx, dword [ebp - 0x98]
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
call fcn.00489b78
lea edx, [ebp - 0x9c]
mov eax, dword [0x559fc8]
mov eax, dword [eax + 0x4c]
call fcn.0052c2a0
mov edx, dword [ebp - 0x9c]
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
call fcn.00489b78
jmp 0x51178f
mov eax, dword [esi]
mov edx, dword [eax + 0x4f4]
mov eax, dword [esi]
mov eax, dword [eax + 0x490]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x4f8]
mov eax, dword [esi]
mov eax, dword [eax + 0x498]
call fcn.00489b78
mov eax, dword [esi]
mov edx, dword [eax + 0x4fc]
mov eax, dword [esi]
mov eax, dword [eax + 0x4ac]
call fcn.00489b78
mov eax, dword [0x559fc8]
test byte [eax + 0x117], 2
je 0x511846
lea edx, [ebp - 0xa0]
mov eax, dword [0x559fc8]
mov eax, dword [eax + 0x28]
call fcn.0052c2a0
mov edx, dword [ebp - 0xa0]
mov eax, dword [esi]
add eax, 0x4e4
call fcn.004077c8
mov eax, dword [0x55a338]
cmp dword [eax], 0
je 0x5117e1
lea edx, [ebp - 8]
mov eax, dword [0x55a338]
mov eax, dword [eax]
call fcn.0052c4d4
jmp 0x511807
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x52c]
call fcn.0040781c
cmp dword [ebp - 8], 0
jne 0x511807
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x4e4]
call fcn.0040781c
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 8]
call fcn.004bbdb8
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.004bc180
mov edx, dword [ebp - 0xa4]
lea eax, [ebp - 8]
call fcn.0040781c
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
mov edx, dword [ebp - 8]
call fcn.00489b78
jmp 0x51185b
mov edx, dword [0x559ef8]
mov edx, dword [edx]
mov eax, dword [esi]
mov eax, dword [eax + 0x3ec]
call fcn.00489b78
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 8], 0
jle 0x511999
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov edx, dword [eax]
call dword [edx + 0xf8]
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x511912
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov edx, edi
call fcn.004347e8
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
call fcn.0052c2a0
mov edx, dword [ebp - 0xac]
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov eax, dword [eax + 0x2ac]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x51190c
mov eax, dword [0x559f2c]
cmp dword [eax], 0
je 0x51190c
mov edx, dword [0x559f2c]
mov edx, dword [edx]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00411864
test eax, eax
jne 0x51190c
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
jne 0x51190c
mov byte [ebp - 0x19], 1
inc edi
dec dword [ebp - 0x2c]
jne 0x511897
cmp dword [ebp - 0x18], 0xffffffff
jne 0x51196c
mov eax, dword [esi]
cmp dword [eax + 0x4f0], 0
je 0x51196c
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x51196c
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov edx, edi
call fcn.004347e8
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x4f0]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00411864
test eax, eax
jne 0x511966
mov dword [ebp - 0x18], edi
jmp 0x51196c
inc edi
dec dword [ebp - 0x2c]
jne 0x511939
cmp dword [ebp - 0x18], 0xffffffff
je 0x511987
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0xf0]
jmp 0x511999
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
mov edx, dword [eax]
call dword [edx + 0xf8]
mov eax, dword [0x559fc8]
test byte [eax + 0x119], 0x20
setne dl
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
call fcn.004ee748
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x511a93
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0x10]
mov edx, edi
call fcn.004347e8
mov ebx, eax
test byte [ebx + 0x35], 8
je 0x511a2d
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 - 0xb0]
mov eax, dword [ebx + 4]
call fcn.0052c2a0
mov edx, dword [ebp - 0xb0]
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
xor ecx, ecx
call fcn.004eca18
jmp 0x511a71
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 - 0xb4]
mov eax, dword [ebx + 4]
call fcn.0052c2a0
mov edx, dword [ebp - 0xb4]
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
xor ecx, ecx
call fcn.004ec918
cmp dword [ebx + 0x3a], 0
jne 0x511a80
cmp dword [ebx + 0x36], 0x100000
jb 0x511a89
mov eax, dword [esi]
mov byte [eax + 0x520], 1
inc edi
dec dword [ebp - 0x2c]
jne 0x5119df
cmp byte [ebp - 0x19], 0
jne 0x511b2b
mov eax, dword [0x55a4c0]
cmp byte [eax], 0
je 0x511b2b
mov eax, dword [0x55a074]
cmp byte [eax], 0
je 0x511b2b
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x511bcc
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov edx, edi
call fcn.004347e8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
je 0x511b20
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [esi]
call fcn.00512f58
mov edx, dword [0x55a4ac]
mov edx, dword [edx]
xor ecx, ecx
mov eax, dword [esi]
call fcn.00512df4
jmp 0x511bcc
inc edi
dec dword [ebp - 0x2c]
jne 0x511acf
jmp 0x511bcc
cmp dword [ebp - 0x18], 0xffffffff
je 0x511b9e
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004347e8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
je 0x511b8e
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.004347e8
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esi]
call fcn.00512f58
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov cl, 1
mov eax, dword [esi]
call fcn.00512f58
mov eax, dword [esi]
mov ecx, dword [eax + 0x508]
mov eax, dword [esi]
mov edx, dword [eax + 0x504]
mov eax, dword [esi]
call fcn.00512df4
jmp 0x511bcc
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esi]
call fcn.00512f58
jmp 0x511bcc
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 8], 0
jle 0x511bcc
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.004347e8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [esi]
call fcn.00512f58
mov eax, dword [esi]
call fcn.0050ff6c
mov eax, dword [esi]
call fcn.0050fccc
mov eax, dword [0x55a074]
cmp byte [eax], 0
je 0x511c3f
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov edx, dword [eax]
call dword [edx + 0xec]
mov edx, eax
mov eax, dword [0x559ee4]
mov eax, dword [eax + 0xc]
call fcn.004347e8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test byte [eax + 0x24], 1
jne 0x511c1d
mov eax, dword [0x559fc8]
test byte [eax + 0x119], 0x10
je 0x511c2e
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
mov dl, 1
call fcn.00489a60
jmp 0x511c4e
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
xor edx, edx
call fcn.00489a60
jmp 0x511c4e
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
xor edx, edx
call fcn.00489a60
mov eax, dword [esi]
mov eax, dword [eax + 0x45c]
movzx edx, byte [eax + 0x59]
mov eax, dword [esi]
mov eax, dword [eax + 0x460]
call fcn.00489a60
mov eax, dword [0x55a074]
cmp byte [eax], 0
je 0x511c9c
mov eax, dword [esi]
mov eax, dword [eax + 0x408]
mov edx, dword [eax]
call dword [edx + 0xec]
mov edx, dword [esi]
mov dword [edx + 0x51c], eax
push 0
mov eax, dword [esi]
mov edx, dword [eax + 0x518]
xor ecx, ecx
mov eax, dword [esi]
call fcn.005130bc
lea edx, [ebp - 0xb8]
mov eax, dword [0x559fc8]
mov eax, dword [eax + 0x2c]
call fcn.0052c2a0
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi]
add eax, 0x4e8
call fcn.004077c8
mov eax, dword [0x55a110]
cmp dword [eax], 0
je 0x511ce7
mov eax, dword [esi]
cmp byte [eax + 0x515], 0
jne 0x511ce7
lea edx, [ebp - 8]
mov eax, dword [0x55a110]
mov eax, dword [eax]
call fcn.0052c4d4
jmp 0x511d28
mov eax, dword [esi]
cmp dword [eax + 0x4ec], 0
je 0x511d06
mov eax, dword [esi]
mov eax, dword [eax + 0x4ec]
mov edx, 0x511e54
call fcn.00407f38
jne 0x511d18
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x4e8]
call fcn.0040781c
jmp 0x511d28
lea eax, [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x4ec]
call fcn.0040781c
mov eax, dword [esi]
mov eax, dword [eax + 0x3f0]
mov edx, dword [ebp - 8]
call fcn.00489b78
mov eax, dword [0x559fc8]
test byte [eax + 0x117], 4
je 0x511d7e
mov eax, dword [0x55a16c]
cmp byte [eax], 0
jne 0x511d5b
mov eax, dword [esi]
cmp byte [eax + 0x500], 0
je 0x511d6d
mov eax, dword [esi]
mov eax, dword [eax + 0x3f4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [esi]
mov eax, dword [eax + 0x3f4]
mov dl, 1
call fcn.00489a60
jmp 0x511d8d
mov eax, dword [esi]
mov eax, dword [eax + 0x3f4]
xor edx, edx
call fcn.00489a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511dcf
lea eax, [ebp - 0xb8]
mov edx, 0x18
call fcn.004077c0
lea eax, [ebp - 0x54]
mov edx, 7
call fcn.004077c0
lea eax, [ebp - 0x30]
call fcn.004077b8
lea eax, [ebp - 8]
call fcn.004077b8
ret