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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52210a
sub esp, 0x6c
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
mov ebx, dword [eax + 0x3c]
mov ebp, dword [eax + 0x48]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call fcn.004f6230
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x70]
cmp ebx, 1
je 0x521e2e
cmp ebx, 2
je 0x521a74
cmp ebx, 3
jne 0x521a4a
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x4c], eax
lea ebx, [0x5ee300]
mov dword [esp], ebx
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
lea ecx, [0x5ec620]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004fb050
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x5219ea
test ecx, ecx
je 0x521831
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x2a
mov eax, dword [0x7db370]
test eax, eax
jne 0x521824
lea eax, [0x628f04]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x628f04]
call fcn.0044b680
jmp 0x5217fc
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.005205c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x52198a
mov dword [esp + 0x38], eax
mov dword [esp + 0x60], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
call fcn.004eb440
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x52192a
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
lea eax, [0x60ad60]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [0x7db370]
test ecx, ecx
jne 0x521900
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
lea ecx, [0x604340]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.0044b680
lea edi, [ecx + 8]
mov eax, dword [esp + 0x48]
call fcn.0044b680
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x44]
call fcn.0044b680
mov eax, ecx
jmp 0x5218d8
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x2e
mov eax, dword [0x7db370]
test eax, eax
jne 0x52197d
lea eax, [0x629e18]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x629e18]
call fcn.0044b680
jmp 0x521955
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x20
mov eax, dword [0x7db370]
test eax, eax
jne 0x5219dd
lea eax, [0x625e30]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x625e30]
call fcn.0044b680
jmp 0x5219b5
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x35
mov eax, dword [0x7db370]
test eax, eax
jne 0x521a3d
lea eax, [0x62b2a5]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x62b2a5]
call fcn.0044b680
jmp 0x521a15
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
lea eax, [0x61b3e0]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
lea ecx, [0x5c5e40]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004fb050
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x521e0c
test eax, eax
je 0x521b2c
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x28
mov eax, dword [0x7db370]
test eax, eax
jne 0x521b1f
lea eax, [0x62864b]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x62864b]
call fcn.0044b680
jmp 0x521af7
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0x30]
mov dword [esp + 0x50], eax
lea ebx, [0x5f7b60]
mov dword [esp], ebx
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
lea ecx, [0x5c91c0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004fb050
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
test ecx, ecx
jne 0x521dea
test edx, edx
jne 0x521d8a
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x521d6f
xor ecx, ecx
test ecx, ecx
jg 0x521c18
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x24
mov eax, dword [0x7db370]
test eax, eax
jne 0x521c0b
lea eax, [0x6272ec]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x6272ec]
call fcn.0044b680
jmp 0x521be3
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x521d54
xor edx, edx
test edx, edx
jle 0x521bb8
mov edx, dword [ecx + 4]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x521d39
xor edx, edx
test edx, edx
jle 0x521bb8
mov edx, dword [ecx + 8]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x521d1e
xor edx, edx
test edx, edx
jle 0x521bb8
lea eax, [0x5ef360]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [0x7db370]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov edi, dword [esp + 4]
test eax, eax
jne 0x521d12
mov dword [edi], edx
mov edx, dword [0x7db370]
mov eax, dword [ecx + 4]
test edx, edx
jne 0x521d02
mov dword [edi + 4], eax
mov edx, dword [0x7db370]
mov eax, dword [ecx + 8]
test edx, edx
jne 0x521cf2
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov ecx, dword [0x7db370]
test ecx, ecx
jne 0x521ce2
mov dword [edi + 0xc], eax
lea eax, [0x5c87c0]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.0044b680
mov edi, edx
jmp 0x521cba
lea ecx, [edi + 8]
mov edx, edi
mov edi, ecx
call fcn.0044b680
mov edi, edx
jmp 0x521ca7
lea edx, [edi + 4]
mov ebx, edi
mov edi, edx
call fcn.0044b680
mov edi, ebx
jmp 0x521c97
mov eax, edx
call fcn.0044b680
jmp 0x521c87
movzx edx, byte [edx]
test dl, dl
je 0x521d2f
mov edx, 0xffffffff
jmp 0x521c57
mov edx, 1
jmp 0x521c57
movzx edx, byte [edx]
test dl, dl
je 0x521d4a
mov edx, 0xffffffff
jmp 0x521c3f
mov edx, 1
jmp 0x521c3f
movzx edx, byte [edx]
test dl, dl
je 0x521d65
mov edx, 0xffffffff
jmp 0x521c2b
mov edx, 1
jmp 0x521c2b
movzx ecx, byte [ecx]
test cl, cl
je 0x521d80
mov ecx, 0xffffffff
jmp 0x521bb4
mov ecx, 1
jmp 0x521bb4
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x28
mov eax, dword [0x7db370]
test eax, eax
jne 0x521ddd
lea eax, [0x628623]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x628623]
call fcn.0044b680
jmp 0x521db5
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x6c
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [0x7c4b48]
mov ecx, dword [0x7c4b50]
mov edx, dword [0x7c4b4c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call fcn.00402140
movzx eax, byte [esp + 0x18]
test al, al
je 0x5220aa
lea eax, [0x5efba0]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
lea ecx, [0x5c9340]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004fb050
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x522088
test edx, edx
jne 0x522028
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x52200d
xor ecx, ecx
test ecx, ecx
jle 0x521fad
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x521f54
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x32
mov eax, dword [0x7db370]
test eax, eax
jne 0x521f47
lea eax, [0x62ab8b]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x62ab8b]
call fcn.0044b680
jmp 0x521f1f
lea eax, [0x5ef540]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 4]
mov dword [edi + 4], ecx
mov ecx, dword [0x7db370]
mov eax, dword [eax]
test ecx, ecx
jne 0x521fa6
mov dword [edi], eax
lea eax, [0x5e46a0]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
call fcn.0044b680
jmp 0x521f7e
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x2a
mov eax, dword [0x7db370]
test eax, eax
jne 0x522000
lea eax, [0x628eda]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x628eda]
call fcn.0044b680
jmp 0x521fd8
movzx ecx, byte [ecx]
test cl, cl
je 0x52201e
mov ecx, 0xffffffff
jmp 0x521ee5
mov ecx, 1
jmp 0x521ee5
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x28
mov eax, dword [0x7db370]
test eax, eax
jne 0x52207b
lea eax, [0x628673]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x628673]
call fcn.0044b680
jmp 0x522053
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x25
mov eax, dword [0x7db370]
test eax, eax
jne 0x5220fd
lea eax, [0x6277fa]
mov dword [edi], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x65f350]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x6c
ret
lea eax, [0x6277fa]
call fcn.0044b680
jmp 0x5220d5
call fcn.00449f20
jmp fcn.005216f0