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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xbfd8
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0xbfd4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x22]
movsx ecx, dx
mov dword [esp + 0x18], ecx
lea ecx, [ecx + ecx*8]
mov dword [esp + 0x20], eax
lea eax, [eax + ecx*2]
movzx ecx, word [eax - 4]
movzx eax, word [eax - 2]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], ecx
push edi
mov dword [esp + 0x18], esi
mov ecx, 0x3ff
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x24]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x30], eax
mov esi, 2
shl esi, cl
mov ecx, dword [esp + 0x14]
sub eax, edi
inc eax
dec esi
cmp dx, 1
mov word [esp + 0x1038], ax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
mov byte [ecx], 0
jle 0x528728
mov edx, dword [esp + 0x1038]
push 0
push edx
lea eax, [esp + 0x1040]
push eax
mov dword [esp + 0x14], 0
call fcn.00583610
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x4c]
push edx
dec eax
push 1
push eax
call fcn.00527a40
movzx ecx, word [esp + 0x58]
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
inc ecx
push ecx
call edi
mov esi, eax
movzx eax, word [esp + 0x5c]
lea edx, [eax + 1]
push edx
push esi
lea ecx, [esp + 0x66]
push ecx
push eax
call fcn.005838a0
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [esp + 0x5c]
push edx
lea eax, [esp + 0x1074]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00584410
movzx edx, word [esp + 0x7c]
inc edx
add esp, 0x44
push edx
call edi
mov esi, eax
movzx eax, word [esp + 0x3c]
lea ecx, [eax + 1]
push ecx
push esi
lea edx, [esp + 0x46]
push edx
push eax
call fcn.005838a0
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x3050]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
push 1
call fcn.005789e0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x528984
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx]
push 0
push 1
push ecx
lea edx, [esp + 0x3048]
push edx
push eax
call fcn.00447120
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x528984
cmp dword [esp + 0xc], 0x1e
je 0x52862f
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x10]
push ecx
push eax
push 1
push edx
call fcn.00449210
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x528984
cmp dword [esp + 0xc], 0x1e
jne 0x5286f0
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov cx, word [eax]
cmp cx, word [eax + 2]
jne 0x5285b1
xor ecx, ecx
jmp 0x5285bb
mov edx, dword [ebx + 8]
mov eax, dword [edx]
movsx ecx, word [eax]
add ecx, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax]
movsx edx, word [eax + 2]
movsx eax, word [eax]
sub edx, eax
push edx
push ecx
lea ecx, [esp + 0x2040]
push ecx
call sub.MSVCR90.dll_memcpy
movzx edx, word [esp + 0x2044]
inc edx
push edx
call edi
mov esi, eax
movzx eax, word [esp + 0x2048]
lea ecx, [eax + 1]
push ecx
push esi
lea edx, [esp + 0x2052]
push edx
push eax
call fcn.005838a0
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esp + 0x54]
inc eax
movzx eax, ax
lea ecx, [esp + 0x5e]
push ecx
push eax
lea edx, [esp + 0x2066]
push edx
push eax
call fcn.00583970
add esp, 0x34
test eax, eax
jne 0x5286fa
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x34]
jae 0x5288f3
inc dword [esp + 8]
mov eax, dword [esp + 8]
lea edi, [esp + 0x1038]
call fcn.005279e0
movzx ecx, word [esp + 0x1038]
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
inc ecx
push ecx
call edi
mov esi, eax
movzx eax, word [esp + 0x103c]
lea edx, [eax + 1]
push edx
push esi
lea ecx, [esp + 0x1046]
push ecx
push eax
call fcn.005838a0
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1054]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00584410
movzx edx, word [esp + 0x5c]
inc edx
push edx
call edi
mov esi, eax
movzx eax, word [esp + 0x60]
lea ecx, [eax + 1]
push ecx
push esi
lea edx, [esp + 0x6a]
push edx
push eax
call fcn.005838a0
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x3074]
push eax
push ecx
lea edx, [esp + 0x70]
push edx
push 1
call fcn.005789e0
mov esi, eax
add esp, 0x4c
test esi, esi
jne 0x528984
jmp 0x528540
mov esi, 0x2455
jmp 0x5288f8
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, 0x3ff
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xbfd4]
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6ba7f8]
mov dword [esp + 8], eax
cmp eax, esi
jb 0x52873d
mov dword [esp + 8], 0
cmp dword [esp + 8], 0
mov dword [esp + 0x28], 0
seta al
xor ecx, ecx
test al, al
setne cl
mov byte [esp + 0x13], al
inc ecx
mov eax, ecx
mov dword [esp + 0x30], eax
test eax, eax
jle 0x5289d1
mov eax, dword [esp + 8]
lea edi, [esp + 0x1038]
call fcn.005279e0
mov edx, dword [esp + 0x24]
push edx
mov eax, edi
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00584410
movzx edx, word [esp + 0x44]
inc edx
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
movzx eax, word [esp + 0x48]
lea ecx, [eax + 1]
push ecx
push esi
lea edx, [esp + 0x52]
push edx
push eax
call fcn.005838a0
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x305c]
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
push 1
call fcn.005789e0
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x528984
mov ecx, dword [ebx]
lea edx, [esp + 0xc]
push edx
push eax
push 1
push edi
lea eax, [esp + 0x3048]
push eax
push ecx
call fcn.00447120
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x528984
cmp dword [esp + 0xc], 0x1e
jne 0x52894c
mov eax, dword [ebx]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 1
push eax
call fcn.00449210
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x528984
mov esi, dword [esp + 8]
inc esi
cmp dword [esp + 0xc], 0x1e
mov dword [esp + 8], esi
jne 0x5289b0
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov dx, word [eax]
cmp dx, word [eax + 2]
jne 0x528851
xor eax, eax
jmp 0x52885a
mov eax, ecx
mov ecx, dword [eax]
movsx eax, word [ecx]
add eax, ecx
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx]
movsx edx, word [ecx + 2]
movsx ecx, word [ecx]
sub edx, ecx
push edx
push eax
lea edx, [esp + 0x1040]
push edx
call sub.MSVCR90.dll_memcpy
mov edi, dword [esp + 0x2c]
push edi
mov ecx, ebx
lea edx, [esp + 0x1048]
call fcn.00528250
add esp, 0x10
cmp eax, esi
ja 0x5289e7
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x5288da
cmp esi, dword [esp + 0x34]
jb 0x52880b
cmp byte [esp + 0x13], al
je 0x5288f3
mov dword [esp + 8], eax
mov eax, 1
cmp dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
jg 0x528767
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xbfd4]
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x52880b
mov eax, dword [0x6ba7f8]
dec eax
cmp dword [esp + 8], eax
jne 0x52880b
mov esi, 0x2457
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0xffc
lea edx, [esp + 0xafdc]
push edx
mov byte [ecx], 0
movzx edx, word [eax]
lea ecx, [eax + 2]
push ecx
push edx
call fcn.005838a0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xafec]
push ecx
push 0x2070
push esi
call fcn.00406f10
add esp, 0x20
pop edi
pop esi
mov ecx, dword [esp + 0xbfd4]
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov ecx, 0x3ff
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
movsw word es:[edi], word [esi]
mov byte [ecx], 1
mov dword [0x6ba7f8], edx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xbfd4]
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push 0x2070
push 0
mov byte [eax], 0
call fcn.00406f10
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xbfd4]
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push esi
push ecx
mov ecx, ebx
call fcn.00528300
mov edx, dword [esp + 0x1c]
add esp, 8
mov byte [edx], 1
mov dword [0x6ba7f8], esi
mov ecx, dword [esp + 0xbfdc]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00586584
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
push esi
push edi
mov ecx, ebx
call fcn.00528300
mov eax, dword [esp + 0x1c]
add esp, 8
mov byte [eax], 1
jmp 0x5289cb