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

Disassembly:
jmp 0x476360
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
call fcn.00403eea
mov eax, dword [0x77c1f4]
mov esi, dword [esp + 0x80]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
add dword [0x77c3f8], 1
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
add eax, 0xffffffff
mov dword [esi + 0x30], eax
add ecx, 0xffffffff
mov dword [esi + 0x2c], ecx
and ebp, 0xfffffffe
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov edx, dword [0x77c1b0]
mov ecx, dword [0x77c1ac]
mov eax, ebp
sub eax, dword [esp + 0x78]
add edx, 0xffffffff
mov dword [esp + 0x3c], eax
add ecx, 0xffffffff
mov eax, 0xff
and ebx, 0xfffffffe
mov dword [0x77c1c0], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, 0x100
push 0x77c1fc
mov dword [0x77c1bc], ecx
lea edx, [esp + 0x40]
push edx
mov ecx, ebx
sub ecx, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x34]
push 0x77c1b4
push eax
mov dword [0x77c1b4], edi
mov dword [0x77c1b8], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebx
call fcn.004092be
add esp, 0x10
test eax, eax
je 0x47665a
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.00401ca8
mov edi, dword [esi + 8]
imul edi, dword [esp + 0x48]
mov eax, dword [0x77c1e0]
imul eax, dword [esp + 0x38]
mov ecx, dword [esi]
mov edx, dword [esp + 0x4c]
add edi, dword [ecx + edx*4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x77c1d8]
add eax, dword [edx + ecx*4]
mov edx, dword [0x77c190]
sub ebx, dword [esp + 0x3c]
sub ebp, dword [esp + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [0x77c198]
imul eax, dword [esp + 0x38]
add eax, dword [edx + ecx*4]
mov ecx, dword [0x77c270]
imul ecx, dword [esp + 0x58]
mov edx, dword [0x77c268]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x5c]
add ecx, dword [edx + eax*4]
mov eax, dword [0x77c1ac]
add ebx, 0x100
add ebp, 0x100
add esp, 0xc
cmp dword [esp + 0x38], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x7c], 0
jle 0x476650
add eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], edx
xor edx, edx
test eax, eax
jle 0x476619
mov esi, dword [esp + 0x80]
mov eax, edi
sub eax, ecx
sub esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
jmp 0x476584
mov eax, dword [esp + 0x18]
lea esi, [edx + ecx]
movzx ebp, byte [eax + esi]
mov eax, ebp
sar eax, 4
cmp byte [esi], 0
je 0x4765e0
mov ebx, dword [esp + 0x1c]
movzx ecx, byte [edx + edi + 1]
lea esi, [edx + edi]
movzx esi, byte [esi + ebx]
mov ebx, dword [esp + 0x10]
sub ecx, ebp
add ecx, dword [esp + 0x70]
sub esi, ebp
add esi, ebx
cmp ecx, 0x100
jae 0x4765dc
cmp esi, 0x100
jae 0x4765dc
mov eax, dword [0x77c274]
neg eax
sbb eax, eax
and eax, dword [0x77c268]
mov eax, dword [eax + esi*4]
movzx eax, byte [eax + ecx]
shr eax, 2
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x20]
sub dword [esp + 0x70], 1
lea esi, [edx + ecx]
movzx esi, byte [esi + ebp]
shl eax, 8
add esi, eax
mov eax, dword [0x77c158]
mov ax, word [eax + esi*2]
mov esi, dword [esp + 0x78]
mov word [esi + edx*2], ax
mov eax, dword [esp + 0x34]
add edx, 1
cmp edx, eax
jl 0x476580
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add dword [esp + 0x78], edx
mov edx, dword [esp + 0x7c]
add dword [esp + 0x80], esi
add edx, 1
add ecx, 0x100
sub ebx, 1
add edi, esi
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x10], ebx
jl 0x476553
mov ecx, 0x77c190
call fcn.00403d23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret