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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x100]
cmp eax, dword [ecx + 8]
jbe 0x522afa
sub esp, 0x180
lea edi, [esp + 0xc0]
xor eax, eax
call fcn.0045e1d0
mov ecx, dword [0x74db50]
mov ebx, dword [0x74db54]
mov ebp, dword [0x74db58]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebp
mov ecx, dword [esp + 0x190]
mov dword [esp + 0xcc], ecx
mov ebx, dword [esp + 0x194]
mov dword [esp + 0xd0], ebx
mov ebp, dword [esp + 0x198]
mov dword [esp + 0xd4], ebp
mov eax, 2
xor edx, edx
xor esi, esi
xor edi, edi
xor edx, edx
mov dword [esp + 0x68], edx
xor edx, edx
mov dword [esp + 0x60], edx
xor edx, edx
mov dword [esp + 0xb0], edx
xor edx, edx
jmp 0x52243b
mov dword [esp + 0x8c], edx
mov eax, dword [esp + edx*4 + 0xc0]
mov ecx, dword [esp + edx*4 + 0xc4]
mov ebp, dword [esp + edx*4 + 0xc8]
mov esi, dword [esp + ebx*4 + 0xc0]
mov edi, dword [esp + ebx*4 + 0xc4]
mov ebx, dword [esp + ebx*4 + 0xc8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
call fcn.0051e2f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x8c]
mov dword [esp + ebx*4 + 0xc4], ecx
mov dword [esp + ebx*4 + 0xc8], edx
mov dword [esp + ebx*4 + 0xc0], eax
mov ebp, dword [esp + 0xa0]
mov dword [esp], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0x2c], edx
call fcn.0051edb0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + ebx*4 + 0xc0]
mov dword [esp + 0xb0], ebp
mov esi, dword [esp + ebx*4 + 0xc4]
mov dword [esp + 0x60], esi
mov edi, dword [esp + ebx*4 + 0xc8]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0xa8], edi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x48], esi
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x58], ebp
mov dword [esp + ebx*4 + 0xc4], ecx
mov dword [esp + ebx*4 + 0xc8], edx
mov dword [esp + ebx*4 + 0xc0], eax
mov ebp, dword [esp + ebx*4 + 0xcc]
mov esi, dword [esp + ebx*4 + 0xd0]
mov edi, dword [esp + ebx*4 + 0xd4]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x190]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x194]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x198]
mov dword [esp + 0x20], edx
call fcn.0051d130
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x8c]
mov dword [esp + ebx*4 + 0xcc], eax
mov dword [esp + ebx*4 + 0xd0], ecx
mov dword [esp + ebx*4 + 0xd4], edx
mov ebp, dword [esp + 0xa8]
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0x2c], edx
call fcn.0051edb0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + ebx*4 + 0xcc]
mov dword [esp + 0xb0], ebp
mov esi, dword [esp + ebx*4 + 0xd0]
mov edi, dword [esp + ebx*4 + 0xd4]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xa4], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + ebx*4 + 0xcc], eax
mov dword [esp + ebx*4 + 0xd0], ecx
mov dword [esp + ebx*4 + 0xd4], edx
mov eax, dword [esp + 0x70]
add eax, 2
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x190]
mov ebx, dword [esp + 0x194]
mov edx, ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], esi
mov ebp, dword [esp + 0x198]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0xa0], edi
cmp eax, 0x10
jge 0x522486
mov dword [esp + 0x70], eax
shr eax, 0x1f
mov ebp, dword [esp + 0x70]
add eax, ebp
sar eax, 1
cmp eax, 0x10
jae 0x522aef
lea ebx, [eax + eax*2]
cmp ebp, 0x10
jae 0x522ae3
lea edx, [ebp + ebp*2]
inc ebp
cmp ebp, 0x10
jb 0x522179
jmp 0x522ad7
nop
mov ebx, dword [esp + 0x18c]
cmp ebx, 1
jl 0x522a85
mov eax, dword [esp + 0x184]
mov dword [eax], 1
mov ecx, dword [esp + 0x1a0]
lea ebp, [ecx - 1]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x98], eax
mov eax, 1
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x98]
jmp 0x522a0f
mov dword [esp + 0x184], eax
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x188], ecx
mov ebp, dword [esp + 0x5c]
shr ebp, 0x1c
lea ebp, [ebp + ebp*2]
mov ebx, dword [esp + ebp*4 + 0xc0]
mov dword [esp + 0xb8], ebx
mov ebx, dword [esp + ebp*4 + 0xc4]
mov ebp, dword [esp + ebp*4 + 0xc8]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18c]
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
call fcn.0051d130
mov eax, dword [esp + 0x24]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x184]
mov dword [esp], ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a8]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x2c], esi
call fcn.0051edb0
mov eax, dword [esp + 0x6c]
add eax, 4
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
shl eax, 4
mov dword [esp + 0x188], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0xb8]
mov dword [esp + 0xb0], ebp
mov ebp, eax
mov eax, ecx
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x6c]
cmp ebp, 0x20
jge 0x522a00
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x8c]
cmp ecx, ebx
je 0x5229e1
mov dword [esp + 0xbc], eax
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x14], edx
call fcn.0051e2f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x184], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18c], edx
mov ebx, dword [esp + 0xbc]
mov dword [esp], ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a8]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x2c], esi
call fcn.0051edb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xb8], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x188], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x80], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.0051e2f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x184]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a8]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x2c], esi
call fcn.0051edb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x184], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x188], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x18c], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.0051e2f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x184]
mov dword [esp], ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a8]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x2c], esi
call fcn.0051edb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x184], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x188], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x18c], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.0051e2f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x184]
mov dword [esp], ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1a8]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b0]
mov dword [esp + 0x2c], esi
call fcn.0051edb0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x7c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 0xb0], ebp
mov ebp, dword [esp + 0x7c]
jmp 0x5224d1
test ebp, ebp
jne 0x522662
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x188]
mov ebp, dword [esp + 0x68]
jmp 0x5224d1
mov ebp, dword [esp + 0x8c]
dec ebp
mov ecx, dword [esp + 0x1a0]
test ebp, ebp
jl 0x522a45
cmp ebp, ecx
jae 0x522ad0
mov dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x19c]
mov ebp, dword [ecx + ebp*4]
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x90]
jmp 0x522637
mov ecx, dword [esp + 0x188]
mov edx, ecx
jmp 0x522a52
mov ecx, ebp
test ecx, ecx
jle 0x522a65
lea ebp, [ecx - 1]
cmp edx, ebp
jbe 0x522ac7
mov esi, dword [eax + ecx*4 - 4]
test esi, esi
je 0x522a50
cmp ecx, ebx
ja 0x522ac0
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], ebx
add esp, 0x180
ret
lea eax, [0x5be500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00444f30
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0xa0]
mov ebx, 1
jmp 0x52249e
mov edx, ebx
call fcn.0045e030
mov eax, ebp
mov ecx, edx
call fcn.0045dff0
mov eax, ebp
call fcn.0045dff0
mov eax, ebp
mov ecx, 0x10
call fcn.0045dff0
mov eax, ebp
mov ecx, 0x10
call fcn.0045dff0
mov ecx, 0x10
call fcn.0045dff0
nop
call fcn.0045ca10
jmp fcn.005220d0