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

Disassembly:
sub esp, 0x54
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 8]
push ebx
mov ebx, dword [esp + 0x60]
lea eax, [eax + eax*2]
shl eax, 6
add eax, edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x3c]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x18]
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x60], edx
mov edx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x48], edx
mov dl, byte [eax + 2]
mov byte [esp + 0x78], dl
mov dl, byte [eax + 3]
mov dword [esp + 0x28], eax
mov al, byte [eax + 4]
mov byte [esp + 0x6c], al
mov al, byte [esi + 3]
mov byte [esp + 0x74], dl
mov dl, byte [esi + 2]
mov byte [esp + 0x12], al
mov eax, dword [edi + 0x24]
mov byte [esp + 0x13], dl
mov dl, byte [esi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0x24]
xor edi, edi
mov dword [esp + 0x44], ecx
test eax, eax
mov byte [esp + 0x11], dl
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
jle 0x403a74
jmp 0x403732
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push edi
call fcn.00437a90
mov ecx, dword [ebx + 0x14]
mov ebp, eax
mov edx, dword [esp + 0x40]
dec ebp
neg ebp
sbb ebp, ebp
add edx, edi
mov edi, dword [esp + 0x44]
add ebp, 2
push ebx
push ecx
push ebp
mov ecx, edi
mov dword [esp + 0x58], ebp
call fcn.00401a60
mov edx, ebx
mov ecx, edi
call fcn.00401d10
mov eax, dword [ebx + 0x28]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
jle 0x4038d5
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov dword [esp + 0x30], ecx
mov edx, dword [ebx + 0x34]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], 0
lea eax, [edx + edi - 1]
mov edx, dword [ebx + 0x40]
imul eax, dword [esp + 0x50]
lea esi, [eax + ecx - 3]
lea eax, [edi + edx - 1]
imul eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
lea ecx, [eax + ecx - 3]
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x4038c1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
add ecx, edx
mov edx, dword [esp + 0x5c]
add esi, eax
mov eax, dword [esp + 0x1c]
lea edx, [edx + eax*4]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax]
cmp ebp, 9
jne 0x403813
mov dl, byte [esp + 0x6c]
mov al, byte [esp + 0x74]
mov byte [ecx], dl
mov dl, byte [esp + 0x78]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], dl
inc ecx
add esi, 3
jmp 0x403895
test ebp, ebp
jne 0x40382d
mov al, byte [esi]
mov byte [ecx], al
mov dl, byte [esi + 1]
inc ecx
inc esi
mov byte [ecx], dl
mov al, byte [esi + 1]
inc ecx
inc esi
mov byte [ecx], al
inc ecx
inc esi
jmp 0x403895
mov edi, 9
xor eax, eax
mov al, byte [esi]
sub edi, ebp
mov edx, dword [esp + 0x28]
imul eax, edi
mov edx, dword [edx + ebp*4 + 0x98]
inc esi
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
xor eax, eax
mov byte [ecx], dl
mov al, byte [esi]
mov edx, dword [esp + 0x28]
imul eax, edi
mov edx, dword [edx + ebp*4 + 0x70]
inc ecx
add edx, eax
mov eax, 0x38e38e39
mul edx
inc esi
xor eax, eax
shr edx, 1
mov byte [ecx], dl
mov al, byte [esi]
mov edx, dword [esp + 0x28]
imul eax, edi
mov edx, dword [edx + ebp*4 + 0x48]
mov edi, dword [esp + 0x24]
add edx, eax
mov eax, 0x38e38e39
mul edx
inc ecx
inc esi
shr edx, 1
mov byte [ecx], dl
inc ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add eax, 4
inc edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 0x24]
inc eax
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x4037eb
mov ebp, dword [esp + 0x4c]
mov eax, dword [ebx + 0x28]
inc edi
cmp edi, eax
mov dword [esp + 0x24], edi
jl 0x403795
mov esi, dword [esp + 0x38]
mov ecx, dword [ebx]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
lea ecx, [ecx + ecx*2]
shl ecx, 3
cmp dword [ecx + 0x46518c], edx
jle 0x403a25
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
mov dword [esp + 0x30], eax
mov edi, dword [ebx + 0x40]
mov eax, edx
add eax, edi
mov ecx, dword [ecx + 0x465188]
imul eax, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], 0
shl ecx, 1
add eax, edi
test ecx, ecx
jle 0x403a0c
mov edx, dword [esp + 0x60]
lea ecx, [eax + esi]
add esi, eax
mov eax, dword [esp + 0x1c]
lea edx, [edx + eax*4]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov edi, dword [eax]
cmp edi, 9
jne 0x40395d
mov dl, byte [esp + 0x11]
mov al, byte [esp + 0x12]
mov byte [ecx], dl
mov dl, byte [esp + 0x13]
inc esi
inc ecx
inc esi
mov byte [ecx], al
inc ecx
jmp 0x4039c9
test edi, edi
jne 0x403969
add esi, 3
add ecx, 3
jmp 0x4039cd
mov ebp, 9
xor eax, eax
mov al, byte [esi]
sub ebp, edi
mov edx, dword [esp + 0x34]
imul eax, ebp
mov edx, dword [edx + edi*4 + 0x98]
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
inc esi
xor eax, eax
mov byte [ecx], dl
mov edx, dword [esp + 0x34]
mov al, byte [esi]
inc ecx
imul eax, ebp
mov edx, dword [edx + edi*4 + 0x70]
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
inc esi
xor eax, eax
mov byte [ecx], dl
mov edx, dword [esp + 0x34]
mov al, byte [esi]
inc ecx
imul eax, ebp
mov edx, dword [edx + edi*4 + 0x48]
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
mov byte [ecx], dl
inc esi
inc ecx
mov eax, dword [ebx]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
add edx, 4
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
inc edi
mov eax, dword [eax*8 + 0x465188]
inc edx
shl eax, 1
cmp edx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jl 0x40393c
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebx]
inc edx
mov dword [esp + 0x24], edx
lea ecx, [ecx + ecx*2]
shl ecx, 3
cmp edx, dword [ecx + 0x46518c]
jl 0x4038fe
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
jne 0x403a43
cmp ebp, 2
jne 0x403a3b
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
jmp 0x403a4a
mov edx, dword [ebx + 4]
mov eax, dword [edx + 8]
jmp 0x403a48
cmp ebp, 2
je 0x403a4a
sar eax, 1
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
add eax, ebp
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x3c], eax
jl 0x40372a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x14