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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x48]
cmp eax, dword [ecx + 8]
jbe 0x520dc7
sub esp, 0xc8
mov eax, dword [esp + 0x128]
test eax, eax
je 0x52023f
mov ecx, dword [eax]
jmp 0x520241
xor ecx, ecx
mov dword [esp + 0x4c], ecx
lea eax, [0x5e1fa0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.0044a130
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
lea edi, [esp + 0x98]
xor eax, eax
call fcn.00463954
lea eax, [0x5e3520]
mov dword [esp], eax
mov ecx, dword [esp + 0x128]
mov dword [esp + 4], ecx
lea edx, [esp + 0x98]
mov dword [esp + 8], edx
call fcn.0040d9c0
jmp 0x5202c3
lea eax, [esp + 0x98]
mov dword [esp], eax
call fcn.0040dbf0
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x5204af
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [ecx]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x78], ecx
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0x4c], ebx
xor ebp, ebp
jmp 0x520d7c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
jl 0x5202b4
mov ecx, dword [0x79c1f0]
lea ebx, [0x79c1f0]
cmp dword [ebx + 4], edx
jne 0x52034c
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5202b4
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
lea ebx, [0x79c1f0]
mov ecx, dword [0x79c228]
lea ebp, [0x79c228]
cmp dword [ebp + 4], edx
jne 0x52038e
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5202b4
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
lea ebx, [0x79c1f0]
lea ebp, [0x79c228]
mov ecx, dword [0x79c218]
lea esi, [0x79c218]
cmp dword [esi + 4], edx
jne 0x5203d6
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5202b4
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
lea ebx, [0x79c1f0]
lea ebp, [0x79c228]
lea esi, [0x79c218]
mov ecx, dword [0x79c1c0]
lea esi, [0x79c1c0]
cmp dword [esi + 4], edx
jne 0x52041e
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5202b4
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
lea ebx, [0x79c1f0]
lea ebp, [0x79c228]
lea esi, [0x79c1c0]
mov ecx, dword [esp + 0x90]
inc ecx
mov esi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x94]
cmp ebp, ecx
jae 0x520482
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5e1fa0]
mov dword [esp + 0x10], eax
call fcn.0044a1f0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x8c], esi
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
lea ebx, [0x79c1f0]
mov dword [esp + 0x90], ecx
lea ebp, [esi + ecx*8 - 4]
mov dword [ebp], edx
lea edi, [esi + ecx*8 - 8]
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x5204a5
mov dword [edi], eax
jmp 0x5202b4
call fcn.00463730
jmp 0x5202b4
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00409700
mov eax, dword [esp + 0xc]
lea ecx, [0x662360]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004900e0
mov eax, dword [esp + 0x12c]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x520513
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x520513
mov dword [esp], eax
mov byte [esp + 4], 0x20
call fcn.00503550
mov eax, dword [esp + 0x90]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea ecx, [0x520de0]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x88], ecx
mov dword [esp], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
call fcn.0048ff20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
cmp ecx, eax
jle 0x5205b5
jbe 0x520d74
lea edx, [edx + eax*8]
mov ebx, dword [edx + 4]
mov edx, dword [edx]
mov ebp, dword [0x79c1c8]
cmp dword [0x79c1cc], ebx
je 0x520594
xor ecx, ecx
jmp 0x5205b7
mov dword [esp + 0x44], eax
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x44]
jmp 0x5205b7
xor ecx, ecx
test cl, cl
je 0x520731
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
cmp ecx, eax
jbe 0x520d6f
lea ecx, [edx + eax*8 + 4]
mov dword [ecx], 0
lea edi, [edx + eax*8]
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x5205f4
mov dword [edi], 0
jmp 0x5205fb
xor eax, eax
call fcn.00463730
lea eax, [0x5de4a0]
mov dword [esp], eax
call fcn.0040bd40
mov edi, dword [esp + 4]
mov eax, dword [0x79c1c8]
mov ecx, dword [0x79c1cc]
mov dword [edi + 4], ecx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x52062a
mov dword [edi], eax
jmp 0x52062f
call fcn.00463730
mov eax, dword [esp + 0x90]
lea ecx, [eax + 1]
cmp ecx, 1
ja 0x520645
mov edx, 1
jmp 0x52067d
mov dword [esp + 0x4c], eax
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
lea ecx, [0x5e1fa0]
mov dword [esp + 0x10], ecx
call fcn.0044a1f0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], edi
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
lea esi, [0x5e1fa0]
mov dword [esp], esi
sub eax, ebx
sub edx, eax
dec edx
neg edx
lea esi, [eax + 1]
shl esi, 3
sar edx, 0x1f
and esi, edx
lea edx, [edi + esi]
mov dword [esp + 4], edx
sub ecx, eax
lea eax, [ecx - 1]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00410970
mov eax, dword [esp + 0x78]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x94], ecx
lea ecx, [0x5e1fa0]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.0044a130
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x28]
xor ebp, ebp
xor esi, esi
jmp 0x520cb9
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x4c], ecx
xor edx, edx
jmp 0x520756
lea edx, [ecx + 1]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
jge 0x520b18
mov dword [esp + 0x30], edx
lea ebx, [eax + edx*8]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x34], ebp
mov ebx, dword [ebx]
mov dword [esp + 0x5c], ebx
mov esi, dword [0x79c1c8]
lea edi, [0x79c1c8]
cmp dword [edi + 4], ebp
jne 0x52080e
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
je 0x5207f4
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x5207bf
movzx eax, byte [esp + 0xd4]
mov byte [esp], al
call fcn.00522090
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x120]
test ecx, ecx
jne 0x5207e6
mov dword [esp + 0x58], eax
movzx eax, byte [esp + 0xd4]
mov byte [esp], al
call fcn.005221b0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x34]
mov esi, eax
mov edi, ecx
jmp 0x520858
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x34]
lea edi, [0x79c1c8]
mov esi, dword [esp + 0x114]
test esi, esi
jne 0x520847
movzx eax, byte [esp + 0xd4]
mov byte [esp], al
call fcn.00521ef0
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x34]
lea edi, [0x79c1c8]
mov edi, dword [esp + 0x118]
test edi, edi
jne 0x520858
lea edi, [0x62324c]
mov dword [esp + 0x74], esi
mov dword [esp + 0x54], edi
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00409680
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov ecx, dword [esp + 8]
lea ebx, [0x5e1fa0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00503040
lea eax, [0x5e3520]
mov dword [esp], eax
mov ecx, dword [esp + 0x128]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
call fcn.0040f750
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
je 0x520975
mov ebx, dword [ecx + 8]
cmp ebx, 0x778cdb8
jne 0x52090f
lea ebx, [0x5e1fa0]
cmp ecx, ebx
jne 0x520907
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov edx, dword [eax]
mov dword [esp + 0x68], edx
xor eax, eax
jmp 0x520b21
lea ebx, [0x5ee780]
jmp 0x520975
cmp ebx, 0x42d28209
jne 0x52096f
lea ebx, [0x5ee780]
cmp ecx, ebx
jne 0x520975
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409680
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov ecx, dword [esp + 8]
lea ebx, [0x5ee780]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00503040
jmp 0x520ae7
lea ebx, [0x5ee780]
mov edx, dword [0x79bd98]
mov ebx, dword [edx]
mov dword [esp], ecx
mov dword [esp + 4], eax
call ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test ebp, ebp
je 0x520a51
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
movzx eax, byte [esp + 0xd4]
lea ecx, [0x5e1fa0]
mov dword [esp], ecx
lea edx, [0x66143c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1f
mov byte [esp + 0xc], al
call fcn.00521110
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov edx, dword [esp + 0x70]
test edx, edx
je 0x520a02
mov esi, dword [edx + 4]
jmp 0x520a04
mov esi, edx
mov dword [esp + 0x7c], esi
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x80], edx
lea edx, [0x6619f4]
mov dword [esp], edx
mov ebx, dword [esp + 0x12c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004c76f0
jmp 0x520ae7
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00409700
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov ecx, dword [esp + 0xc]
lea ebx, [0x5dc060]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409680
mov eax, dword [esp + 8]
lea ecx, [0x5e1fa0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x6619f4]
mov dword [esp], eax
mov edx, dword [esp + 0x12c]
mov dword [esp + 4], edx
lea ebx, [esp + 0x7c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c7870
mov eax, dword [esp + 0x90]
dec eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0x52074b
mov eax, dword [esp + 0x12c]
mov dword [esp], eax
mov byte [esp + 4], 0x20
call fcn.00503550
mov ecx, dword [esp + 0x30]
jmp 0x52074b
add esp, 0xc8
ret
mov eax, ebp
cmp eax, ecx
jge 0x520c64
movzx ebp, byte [edx + eax]
cmp ebp, 0x80
jge 0x520b3c
lea ebp, [eax + 1]
cmp eax, ecx
jmp 0x520b68
mov dword [esp + 0x2c], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0045c270
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
mov edx, dword [esp + 0x68]
lea ebx, [0x5e1fa0]
jae 0x520cad
movzx esi, byte [edx + eax]
xchg esi, eax
cmp al, 0x20
xchg esi, eax
jb 0x520b95
xchg esi, eax
cmp al, 0x7e
xchg esi, eax
ja 0x520b95
xchg esi, eax
cmp al, 0x20
xchg esi, eax
je 0x520b95
xchg esi, eax
cmp al, 0x5c
xchg esi, eax
je 0x520b95
xchg esi, eax
cmp al, 0x22
xchg esi, eax
jne 0x520b1f
lea eax, [0x5e2160]
mov dword [esp], eax
mov dword [esp + 4], 0
lea edx, [ecx + ecx*2]
mov ebx, edx
shr edx, 0x1f
add edx, ebx
sar edx, 1
mov dword [esp + 0x48], edx
mov dword [esp + 8], edx
call fcn.0044a130
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], 0x22
mov byte [esp + 0x16], 0
call fcn.004ac8f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0044dec0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409680
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov ecx, dword [esp + 8]
lea ebx, [0x5e1fa0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00503040
jmp 0x520ae7
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00409680
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov ecx, dword [esp + 8]
lea ebx, [0x5e1fa0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00503040
jmp 0x520ae7
call fcn.004637b0
inc ebp
mov edx, dword [esp + 0x4c]
mov ecx, edi
cmp ebp, edx
jge 0x520d55
mov edi, ecx
lea ecx, [ecx + ebp*8]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
test edx, edx
je 0x520cb2
mov dword [esp + 0x48], ebp
inc esi
cmp ebx, esi
jae 0x520d1e
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], edx
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5e1fa0]
mov dword [esp + 0x10], eax
call fcn.0044a1f0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x78]
lea ebp, [eax + esi*8 - 4]
mov dword [ebp], edx
lea edx, [eax + esi*8 - 8]
mov ebp, dword [0x7c78f0]
test ebp, ebp
jne 0x520d37
mov dword [edx], ecx
jmp 0x520d4c
mov dword [esp + 0x50], eax
mov ebp, edi
mov edi, edx
mov eax, ecx
call fcn.00463730
mov eax, dword [esp + 0x50]
mov edi, ebp
mov ebp, dword [esp + 0x48]
jmp 0x520cb2
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
jmp 0x520731
call fcn.004637b0
call fcn.004637b0
inc ebp
mov ecx, edi
cmp ebp, ebx
jge 0x52030e
lea esi, [ecx + ebp*8]
mov edi, ecx
mov ecx, dword [esi]
cmp dword [esi + 4], edx
jne 0x520d79
mov dword [esp + 0x48], ebp
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5202fc
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x78]
jmp 0x520d79
call fcn.00462320
jmp fcn.00520210