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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x68]
cmp eax, dword [ecx + 8]
jbe 0x523b60
sub esp, 0xe8
mov eax, dword [esp + 0xec]
mov dword [esp], eax
call fcn.0051cd20
mov eax, dword [esp + 4]
test eax, eax
je 0x523256
mov edx, dword [esp + 0xec]
xor ecx, ecx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x52327c
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov edx, dword [esp + 0xec]
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x5c], ebp
mov edi, dword [eax]
cmp edi, 3
je 0x52333d
mov dword [esp + 0x54], ecx
cmp edi, 4
jne 0x5233f8
lea edi, [esp + 0xd0]
xor eax, eax
call fcn.004610ea
mov ecx, dword [esp + 0x58]
mov edi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ebp
mov ebp, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x40]
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], edi
lea edi, [esp + 0xb8]
mov eax, esi
lea esi, [esp + 0xd0]
call fcn.004615c4
mov ecx, dword [esp + 0x58]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x48], ebp
mov esi, dword [ecx + 8]
mov dword [esp + 0x44], esi
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], ecx
mov edi, dword [edx + 0x140]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
jmp 0x5237d6
test ecx, ecx
jne 0x523455
cmp byte [eax + 0x45], 1
jne 0x523409
cmp byte [eax + 0x46], 1
jne 0x523409
lea eax, [0x56ae20]
mov dword [esp], eax
call fcn.0040bd30
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x58]
movzx edx, byte [eax + 0x45]
mov byte [ecx], dl
movzx eax, byte [eax + 0x46]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
nop
mov ebp, dword [esp + 0xec]
mov byte [ebp + 0xf8], 0
inc dword [ebp + 0xf4]
mov esi, dword [ebp + 0xe8]
mov edi, dword [ebp + 0xf0]
cmp esi, edi
jbe 0x5234b0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ecx
mov eax, dword [ebp + 0xe4]
lea ecx, [edi + edi*8]
lea eax, [eax + ecx*8]
cmp dword [eax], 2
sete al
mov byte [ebp + 0xdd], al
inc dword [ebp + 0xf0]
mov dword [esp], ebp
call fcn.0051cd20
mov eax, dword [esp + 4]
test eax, eax
jne 0x523265
jmp 0x5234a1
mov eax, dword [0x69ac14]
mov dword [esp + 0x48], eax
xor edi, edi
jmp 0x5234d4
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [edx], 4
mov dword [edx + 8], 0x20
mov ebp, dword [0x6c4f80]
test ebp, ebp
je 0x523434
mov ebp, dword [edx + 4]
call fcn.00460ef0
mov dword [edi], ebp
lea ebp, [0x58eef8]
mov dword [edx + 4], ebp
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ebx
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
nop
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [edx], 4
mov dword [edx + 8], 0x1f
mov ebp, dword [0x6c4f80]
test ebp, ebp
je 0x523480
mov ebp, dword [edx + 4]
call fcn.00460ef0
mov dword [edi], ebp
lea ebp, [0x58e8bd]
mov dword [edx + 4], ebp
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ebx
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov eax, edi
mov ecx, esi
call fcn.00460f60
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x20]
cmp edi, eax
jge 0x5236da
mov ebp, dword [0x69ac14]
cmp edi, ebp
jae 0x5237b2
mov dword [esp + 0x30], edi
lea ebp, [edi + edi*2]
mov ebx, dword [0x69ac10]
lea ebx, [ebx + ebp*8]
mov ebp, edi
lea edi, [esp + 0xa0]
mov esi, ebx
call fcn.004615c4
mov ecx, dword [edx + 0x140]
mov dword [esp + 0x44], ecx
xor ebx, ebx
jmp 0x52373e
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x44], eax
lea ecx, [0x560b60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x40], ecx
lea edx, [0x560b60]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
lea edi, [esp + 0x70]
xor eax, eax
call fcn.004610ea
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa4]
cmp edx, ecx
jl 0x5235b3
mov edx, ecx
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
je 0x5235ce
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004617e0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0xb0]
cmp ecx, edx
jg 0x5235e2
mov edx, ecx
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0xac]
cmp ecx, ebx
je 0x523601
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004617e0
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + 0x144]
mov ebx, dword [ecx + 0x140]
inc ebx
mov ebp, dword [ecx + 0x13c]
cmp edx, ebx
jae 0x523685
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x56ad60]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xec]
mov dword [ebx + 0x144], eax
mov eax, dword [0x6c4f80]
test eax, eax
je 0x523674
call fcn.00460f00
mov dword [edi], ecx
mov ebp, dword [ebx + 0x13c]
mov dword [edi + 4], ebp
mov dword [ebx + 0x13c], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xec]
mov dword [ecx + 0x140], ebx
mov edx, dword [0x6c4f80]
lea ebx, [ebx + ebx*2]
lea edi, [ebp + ebx*8 - 0x18]
test edx, edx
je 0x5236c5
mov dword [esp + 0x64], edi
lea eax, [0x56ad60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
call fcn.00410740
mov ecx, dword [esp + 0xec]
mov edi, dword [esp + 0x64]
lea esi, [esp + 0x70]
call fcn.004615c4
mov edx, dword [esp + 0xec]
jmp 0x5234b9
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x5236fd
mov edx, dword [0x6c4f80]
test edx, edx
je 0x5236fb
call fcn.00460f00
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x523726
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x523724
call fcn.00460f00
mov dword [edi], ebp
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov dword [eax], ebp
mov byte [esp + 0xf8], 1
add esp, 0xe8
ret
inc ebx
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
cmp ebx, ecx
jge 0x52351b
mov esi, dword [edx + 0x140]
cmp ebx, esi
jae 0x5237a9
mov esi, dword [esp + 0xa4]
mov edi, dword [edx + 0x13c]
lea eax, [ebx + ebx*2]
lea ebp, [edi + eax*8]
lea eax, [edi + eax*8]
cmp dword [ebp + 4], esi
je 0x52376f
xor eax, eax
jmp 0x5237a0
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00403360
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0x28]
test al, al
je 0x523735
jmp 0x5234b9
mov eax, ebx
mov ecx, esi
call fcn.00460f60
mov eax, edi
mov ecx, ebp
call fcn.00460f60
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
jge 0x523891
mov eax, dword [edx + 0x140]
cmp ebx, eax
jae 0x523b56
mov eax, dword [esp + 0xbc]
mov ecx, dword [edx + 0x13c]
lea esi, [ebx + ebx*2]
lea ebp, [ecx + esi*8]
lea ecx, [ecx + esi*8]
cmp dword [ebp + 4], eax
je 0x52380f
xor eax, eax
jmp 0x52383c
mov edx, dword [esp + 0xb8]
mov ecx, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00403360
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
test al, al
je 0x5237bb
nop
mov dword [edx], 4
mov dword [edx + 8], 0x1e
mov ecx, dword [0x6c4f80]
test ecx, ecx
jne 0x523860
cmp ebx, edi
jmp 0x52386e
mov ecx, dword [edx + 4]
mov eax, edi
call fcn.00460ef0
mov dword [edi], ecx
cmp ebx, eax
lea ecx, [0x58e2f5]
mov dword [edx + 4], ecx
mov ebx, dword [esp + 0x48]
mov dword [edx + 0x14], ebx
mov ebx, dword [esp + 0x44]
mov dword [edx + 0x18], ebx
mov ebx, dword [esp + 0x40]
mov dword [edx + 0x1c], ebx
jmp 0x523a73
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x48], eax
lea ecx, [0x560b60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x44], ecx
lea edx, [0x560b60]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004610ea
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0xbc]
cmp edx, ecx
jl 0x523938
mov edx, ecx
mov ecx, dword [esp + 0xb8]
cmp ecx, eax
je 0x523953
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004617e0
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xc8]
cmp ecx, edx
jg 0x523967
mov edx, ecx
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0xc4]
cmp ecx, ebx
je 0x523989
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004617e0
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + 0x144]
mov ebx, dword [ecx + 0x140]
inc ebx
mov ebp, dword [ecx + 0x13c]
cmp edx, ebx
jae 0x523a0d
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x56ad60]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xec]
mov dword [ebx + 0x144], eax
mov eax, dword [0x6c4f80]
test eax, eax
je 0x5239fc
call fcn.00460f00
mov dword [edi], ecx
mov ebp, dword [ebx + 0x13c]
mov dword [edi + 4], ebp
mov dword [ebx + 0x13c], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xec]
mov dword [ecx + 0x140], ebx
mov edx, dword [0x6c4f80]
lea ebx, [ebx + ebx*2]
lea edi, [ebp + ebx*8 - 0x18]
test edx, edx
je 0x523a50
mov dword [esp + 0x64], edi
lea eax, [0x56ad60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
call fcn.00410740
mov ecx, dword [esp + 0xec]
mov edi, dword [esp + 0x64]
lea esi, [esp + 0x88]
call fcn.004615c4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
lea ecx, [0x58e2f5]
mov edx, dword [esp + 0xec]
jl 0x523b47
mov ebx, dword [esp + 0x20]
inc ebx
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
jb 0x523a8c
mov eax, dword [esp + 0x5c]
jmp 0x523ad1
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x56ad60]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [0x58e2f5]
mov edx, dword [esp + 0xec]
mov esi, eax
mov eax, ebp
mov ebp, esi
mov esi, dword [0x6c4f80]
lea edi, [ebx + ebx*2]
lea edi, [eax + edi*8 - 0x18]
test esi, esi
je 0x523b2c
mov dword [esp + 0x60], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x64], edi
lea eax, [0x56ad60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xd0]
mov dword [esp + 8], eax
call fcn.00410740
mov eax, dword [esp + 0x60]
lea ecx, [0x58e2f5]
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x64]
lea esi, [esp + 0xd0]
call fcn.004615c4
mov ecx, dword [esp + 0x54]
mov edx, ebx
mov ebx, eax
mov eax, ebp
jmp 0x523388
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov ecx, eax
mov eax, ebx
call fcn.00460f60
nop
call fcn.0045faf0
jmp fcn.00523210