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

Disassembly:
push 0xffffffffffffffff
push 0x5e1c60
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [esp + 0xc0]
mov edx, dword [eax + 0xf0]
push edi
call edx
mov ebp, dword [esp + 0xbc]
push eax
push ebp
lea ecx, [esp + 0x88]
call fcn.0055cc20
cmp dword [esp + 0xc4], 0
mov dword [esp + 0xb0], 0
je 0x521265
mov eax, dword [edi + 0xc0]
mov ecx, dword [edi + 0xc4]
mov edx, dword [edi + 0xc8]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x52128c
lea ecx, [esp + 0x98]
call fcn.0055c860
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea eax, [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0xfc]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x58], eax
call fcn.0052bda0
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x80], eax
call fcn.0051cba0
mov edx, dword [edi]
mov edx, dword [edx + 0xc8]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xf8]
push edi
mov ecx, esi
call edx
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [esp + 0x78], 0
mov dword [esp + 0x40], ebx
jne 0x521312
cmp dword [esp + 0x58], 2
jne 0x521327
mov dword [esp + 0x5c], 0
jmp 0x52137c
cmp dword [esp + 0x78], 2
je 0x521327
cmp dword [esp + 0x78], 3
je 0x521327
cmp dword [esp + 0x78], 4
jne 0x521308
mov eax, dword [edi + 0x90]
test eax, eax
jne 0x52135b
mov eax, dword [edi + 0x88]
test eax, eax
jg 0x52135b
mov ecx, dword [edi + 0x15c]
test ecx, ecx
je 0x521351
mov eax, dword [ecx + 0x2c]
test eax, eax
jg 0x52135b
mov eax, dword [ecx + 0x28]
jmp 0x521357
mov eax, dword [edi + 0x84]
test eax, eax
je 0x521308
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
mov edx, dword [eax + 0xa8]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], 1
test eax, eax
jne 0x521384
mov dword [esp + 0x3c], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x84]
mov ecx, edi
call edx
mov dword [esp + 0x70], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x6c]
mov ecx, edi
call edx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x9c]
cmp eax, 0xffffffff
jne 0x5213c8
mov ecx, dword [edi + 0x15c]
test ecx, ecx
je 0x5213c8
call fcn.0052c5b0
mov ecx, dword [edi + 0xa0]
mov dword [esp + 0x50], eax
cmp ecx, 0xffffffff
jne 0x5213ea
mov eax, dword [edi + 0x15c]
test eax, eax
je 0x5213ea
mov eax, dword [eax + 0x38]
mov dword [esp + 0x60], eax
jmp 0x5213ee
mov dword [esp + 0x60], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0xb4]
mov ecx, edi
call eax
cmp dword [esp + 0x58], 4
mov dword [esp + 0x90], eax
jne 0x521419
cmp dword [esp + 0x50], 5
jne 0x52142f
mov dword [esp + 0x50], 0
jmp 0x52142f
mov eax, dword [esp + 0x58]
cmp eax, 9
je 0x521d32
cmp eax, 0xb
je 0x521cee
cmp dword [esp + 0xc4], 0
je 0x5214a5
cmp dword [esp + 0x58], 4
je 0x52145d
mov edx, dword [edi]
mov eax, dword [edx + 0x90]
mov ecx, edi
call eax
test eax, eax
jne 0x521488
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
push edi
push ebp
mov ecx, esi
call eax
jmp 0x521488
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
push edi
mov dword [eax + 0xc], ecx
push ebp
mov ecx, esi
call edx
mov eax, dword [ebp]
mov edx, dword [esi]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x7c]
push edi
mov ecx, esi
call eax
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
cmp dword [esp + 0x78], 4
jne 0x5216d2
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
mov ecx, edi
call eax
neg eax
sbb eax, eax
neg eax
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.0051c3f0
mov edx, eax
call fcn.0051cc00
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x128]
test eax, eax
jle 0x5214e7
lea ecx, [eax + eax*2]
jmp 0x5214f3
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x70]
lea ecx, [ecx + eax + 7]
lea eax, [edx + edx - 3]
cmp eax, 0x2a
jge 0x521501
mov eax, 0x2a
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test ebx, ebx
je 0x521515
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0xc4], 0
je 0x521653
cmp dword [esp + 0x3c], 0
je 0x5215db
test ebx, ebx
je 0x521564
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
sar edx, 1
sub eax, edx
mov edx, dword [esp + 0x70]
lea ecx, [edx + ecx + 4]
mov dword [esp + 0x44], eax
jmp 0x521594
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
add edx, 3
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], edx
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x64]
sar eax, 1
sub ecx, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x90]
push 1
push ecx
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [edx + 0xd0]
push ecx
mov ecx, dword [esp + 0x74]
push ecx
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
lea eax, [esp + 0x64]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
push ebp
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x521607
mov eax, dword [esp + 0x70]
add eax, edx
mov dword [esp + 0x34], eax
jmp 0x521612
dec eax
mov ecx, eax
sub ecx, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x30]
push ebx
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
push ebp
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.0051e370
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ebx
push edx
jmp 0x521fb6
lea ecx, [esp + 0x98]
call fcn.0055c860
mov ecx, dword [esp + 0x78]
mov edx, dword [eax]
push ecx
push ebx
push 0
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push edi
mov dword [ecx + 0xc], eax
push ebp
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.0051e370
test ebx, ebx
je 0x5216b2
mov eax, dword [esp + 0x30]
add eax, 6
cmp dword [esp + 0x28], eax
jg 0x5216c3
mov edx, eax
push ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push edx
jmp 0x521fb6
mov eax, dword [esp + 0x2c]
add eax, 5
cmp dword [esp + 0x24], eax
jg 0x5216c3
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ebx
push edx
jmp 0x521fb6
mov ecx, dword [edi + 0x100]
call fcn.0053d570
mov ecx, dword [esp + 0x3c]
test eax, eax
je 0x5218a2
test ecx, ecx
je 0x5218a2
mov ecx, edi
call fcn.005a2b00
test eax, eax
lea eax, [esi + 0x10c]
jne 0x521708
lea eax, [esi + 0x104]
push eax
push ebp
lea ecx, [esp + 0xa0]
call fcn.0055cc20
xor ecx, ecx
cmp dword [esp + 0x58], 2
mov byte [esp + 0xb0], 1
sete cl
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x70], ecx
je 0x5217fe
cmp dword [esp + 0x58], 4
jne 0x52174b
mov edx, dword [esi + 0xc8]
sub dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x18]
add ebx, 4
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x2c]
cdq
push 1
sub eax, edx
mov edx, eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x74]
push ecx
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
sar edx, 1
sub eax, edx
mov edx, dword [esi]
mov edx, dword [edx + 0xd0]
push ebx
push eax
push ebp
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea ebx, [ebx + eax - 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
push eax
push 1
push 0
push 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ebx
push edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push ebp
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0051e960
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
jmp 0x521876
lea ecx, [esp + 0x40]
call fcn.0055c860
mov edx, dword [esp + 0x70]
push edx
mov edx, dword [eax]
push 1
push 0
push 0
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push edi
mov dword [ecx + 0xc], eax
push ebp
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0051e960
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add edx, 0xa
cmp ecx, edx
mov dword [esp + 0x28], eax
jg 0x52185c
mov ecx, edx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0xfc], 4
jne 0x52186c
add ecx, 0xb
mov dword [esp + 0x24], ecx
cmp ecx, eax
jg 0x521876
mov ecx, eax
mov dword [esp + 0x24], ecx
push ebx
push eax
push ecx
push edi
mov edi, dword [esp + 0xc8]
push edi
mov ecx, esi
call fcn.0051cb20
lea ecx, [esp + 0x98]
mov byte [esp + 0xb0], 0
call fcn.0055cc60
jmp 0x521fc7
cmp dword [esp + 0xc4], 0
je 0x521a47
cmp dword [esp + 0x5c], 0
je 0x521a47
mov ecx, dword [esp + 0x5c]
call fcn.00539390
imul eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
call fcn.00548e20
mov ecx, eax
mov eax, dword [esp + 0x40]
cdq
idiv ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
test ebx, ebx
jne 0x521914
lea edx, [esp + 0x40]
push edx
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x14]
sar edx, 1
sub eax, edx
add ecx, 3
mov dword [esp + 0x68], eax
jmp 0x521940
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x64]
add edx, 3
push eax
mov dword [esp + 0x44], edx
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
sub ecx, eax
mov dword [esp + 0x68], edx
lea eax, [esp + 0x64]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
cmp eax, 4
jne 0x52196b
mov eax, dword [esp + 0x14]
add eax, 3
mov dword [esp + 0x40], eax
jmp 0x5219ea
cmp eax, 2
jne 0x52198b
cmp dword [esp + 0x3c], 0
je 0x5219ea
cmp dword [esp + 0x70], 0
jne 0x5219ea
mov ecx, dword [esp + 0x14]
add ecx, 3
mov dword [esp + 0x40], ecx
jmp 0x5219ea
cmp eax, 3
je 0x521995
cmp eax, 1
jne 0x5219ea
cmp dword [esp + 0x3c], 0
je 0x5219ea
cmp dword [esp + 0x70], 0
jne 0x5219ea
lea ecx, [esp + 0x14]
test ebx, ebx
jne 0x5219ca
lea edx, [esp + 0x64]
push edx
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x40], ecx
jmp 0x5219ea
lea eax, [esp + 0x64]
push eax
call fcn.0051cc60
mov ecx, eax
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 4]
sar edx, 1
sub eax, edx
mov dword [esp + 0x44], eax
mov ecx, edi
call fcn.00573900
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x5c]
push 1
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov dword [ecx + 0x20], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
push edx
push ebp
mov ecx, esi
call eax
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0x20], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x58]
dec eax
cmp eax, 9
ja case.0x521a5c.5
movzx edx, byte [eax + 0x52200c]
jmp dword [edx*4 + 0x521ffc]
test ecx, ecx
jne 0x521ad7
cmp dword [esp + 0xc4], ecx
je 0x521a82
mov eax, dword [edi + 0x100]
cmp dword [eax + 0xf8], ecx
jne 0x521a82
xor eax, eax
jmp 0x521a87
mov eax, 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc8]
push 1
push ebx
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
push ebp
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.0051e960
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add eax, 6
push ebx
add ecx, 6
push eax
push ecx
jmp 0x521fb7
cmp dword [esp + 0x70], 0
jne 0x521b51
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x18]
call fcn.0051cc60
mov edx, dword [eax + 4]
mov ecx, dword [esi]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff9
mov dword [esp + 0x64], ecx
push 0
mov ecx, edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], eax
call fcn.0051c050
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0xb4]
mov ecx, edi
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x6c]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
mov edx, dword [eax + 0x110]
push edi
push ebp
mov ecx, esi
call edx
mov eax, dword [esp + 0x28]
push ebx
lea ecx, [eax + 7]
push eax
push ecx
jmp 0x521fb7
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, dword [edi + 0x100]
mov eax, dword [eax + 0xf8]
push ecx
mov ecx, dword [esp + 0x28]
push edx
xor edx, edx
test eax, eax
mov eax, dword [esp + 0xcc]
setne dl
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x94]
push edi
push ebp
push eax
mov ecx, esi
call fcn.00520510
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ebx
push ecx
push edx
jmp 0x521fb7
test ecx, ecx
jne 0x521bcf
mov eax, 0x16
mov edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jmp 0x521bd3
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x70], 0
jne 0x521beb
mov eax, dword [esi + 0xc8]
add eax, dword [esp + 0x24]
push ebx
push edx
jmp 0x521fb6
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esi + 0xc8]
push eax
mov eax, dword [esp + 0xc8]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
push edi
push ebp
lea edx, [esp + 0x58]
mov dword [eax + 0xc], ecx
push edx
mov ecx, esi
call fcn.00520510
mov eax, dword [esi + 0xc8]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
jmp 0x521fb4
cmp dword [esp + 0x70], 0
jne 0x521c62
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
push eax
push ecx
jmp 0x521fb7
test ecx, ecx
jne 0x521c77
mov ecx, dword [esp + 0x28]
mov eax, 0x16
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0xc8]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x9c]
jmp 0x521ba3
mov esi, dword [esp + 0xb8]
lea ecx, [esp + 0x80]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp + 0xb0], 0xffffffff
call fcn.0055cc60
mov eax, esi
jmp 0x521fe0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov edx, dword [esi]
mov edx, dword [edx + 0xe4]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x64]
jmp 0x521d77
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov edx, dword [esi]
mov edx, dword [edx + 0xe0]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x88]
push ebp
push eax
mov ecx, esi
call edx
cmp dword [esp + 0xc4], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
je 0x521f54
mov eax, dword [ebp]
mov edx, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x7c]
push edi
mov ecx, esi
call eax
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
test ebx, ebx
jne 0x521e10
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add eax, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
add edx, 3
add edx, ecx
mov ecx, dword [esp + 0x30]
sar eax, 1
add ecx, eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x2c]
lea eax, [eax + edx + 5]
add ecx, 3
mov dword [esp + 0x14], eax
jmp 0x521e6b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esp + 0x2c]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x18]
add edx, 3
add eax, edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x30]
lea eax, [eax + edx + 5]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x74]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x60]
push eax
push 1
sub esp, 0x10
cmp dword [esp + 0x7c], 0xb
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
push ebp
lea eax, [esp + 0x68]
mov ecx, esi
push eax
jne 0x521eb6
mov edx, dword [edx + 0xe4]
jmp 0x521ebc
mov edx, dword [edx + 0xe0]
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xc4]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
push ebp
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00520510
cmp dword [esp + 0x54], 2
je 0x521f10
cmp dword [esp + 0x54], 3
jne 0x521f47
mov edx, dword [ebp]
push 0x12
mov ecx, esi
call fcn.0051c180
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
mov edx, dword [ebp]
push 0xf
mov ecx, esi
call fcn.0051c180
push eax
mov eax, dword [edx + 0x34]
mov ecx, ebp
call eax
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push ebx
push eax
push ecx
jmp 0x521fb7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
push ebp
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00520510
mov eax, dword [esp + 0x40]
test ebx, ebx
je 0x521fa8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
lea ecx, [ecx + edx + 5]
jmp 0x521fb4
mov ecx, dword [esp + 0x2c]
lea eax, [eax + ecx + 5]
mov ecx, dword [esp + 0x44]
push ebx
push ecx
push eax
push edi
mov edi, dword [esp + 0xc8]
push edi
mov ecx, esi
call fcn.0051cb20
lea ecx, [esp + 0x80]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0055cc60
mov eax, edi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 0x10