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

Disassembly:
sub esp, 0x7f8
mov eax, dword [0x803100]
xor eax, esp
mov dword [esp + 0x7f4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x804]
lea eax, [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x810]
xor esi, esi
push 0x44
push esi
push eax
mov dword [esp + 0x3c], ebp
call fcn.0064ad90
push 0x48
lea eax, [esp + 0x48]
push esi
push eax
call fcn.0064ad90
push ebp
call fcn.006294ce
movzx ebx, al
add esp, 0x1c
mov dword [esp + 0x18], eax
lea eax, [ebp + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
cmp ebx, 0x10
ja 0x64400c
push dword [esp + 0x814]
lea eax, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x518]
push 0x100
push eax
call fcn.00644028
add esp, 0x1c
mov dword [esp + 0x34], eax
cmp eax, 0xffffff88
ja 0x64400f
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
ja 0x64400c
mov edi, ebp
jmp 0x643eac
dec edi
cmp dword [esp + edi*4 + 0x80], esi
je 0x643eab
xor ecx, ecx
mov dword [esp + 0x28], esi
lea edx, [edi + 1]
inc ecx
mov ebx, esi
cmp edx, ecx
jbe 0x643edb
mov eax, ebx
add ebx, dword [esp + ecx*4 + 0x80]
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, edx
jb 0x643ec5
mov dword [esp + 0x28], ebx
mov eax, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], eax
jbe 0x643f20
mov bl, byte [esp + eax + 0x504]
movzx ecx, bl
mov edx, dword [esp + ecx*4 + 0x3c]
lea eax, [edx + 1]
mov byte [esp + edx*2 + 0x605], bl
mov dword [esp + ecx*4 + 0x3c], eax
mov eax, dword [esp + 0x10]
mov byte [esp + edx*2 + 0x604], al
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x643eeb
lea edx, [edi + 1]
xor ebx, ebx
mov dword [esp + 0x3c], esi
inc ebx
cmp edx, ebx
jbe 0x643f4e
mov ecx, dword [esp + 0x1c]
sub ecx, ebp
mov eax, dword [esp + ebx*4 + 0x80]
mov edx, esi
shl eax, cl
add esi, eax
mov dword [esp + ebx*4 + 0xc4], edx
inc ebx
lea edx, [edi + 1]
inc ecx
cmp ebx, edx
jb 0x643f31
mov ebx, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edi
mov eax, ebx
inc ecx
sub eax, ecx
inc eax
mov dword [esp + 0x14], eax
cmp ecx, eax
jae 0x643fc2
imul eax, ecx, 0x44
lea ebx, [esp + 0xc8]
add eax, ebx
mov ebx, dword [esp + 0x14]
imul esi, ecx, 0xffffffbc
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
cmp edx, 1
jbe 0x643fa7
mov ebx, dword [esp + 0x10]
mov esi, eax
mov ebp, edi
mov eax, dword [ebx + esi]
shr eax, cl
mov dword [esi], eax
lea esi, [esi + 4]
sub ebp, 1
jne 0x643f8c
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
inc ecx
add eax, 0x44
sub esi, 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
cmp ecx, ebx
jb 0x643f7f
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
lea eax, [ebp + 1]
push eax
push edi
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x618]
push eax
push ebx
push dword [esp + 0x48]
call fcn.00641219
push 4
lea eax, [esp + 0x3c]
mov byte [esp + 0x3e], bl
push eax
push dword [esp + 0x58]
mov byte [esp + 0x45], 1
call fcn.0064a810
mov eax, dword [esp + 0x60]
add esp, 0x2c
jmp 0x64400f
push 0xffffffffffffffd4
pop eax
mov ecx, dword [esp + 0x804]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00649c68
add esp, 0x7f8
ret