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

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebx, dword [ecx + 8]
push esi
mov esi, dword [esp + 0x8c]
push edi
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x30]
mov ebp, dword [esi + 0x10]
lea edi, [edi + edi*2]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x20]
shl edi, 6
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
add edi, ebx
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x70], edi
mov dword [esp + 0x7c], eax
call fcn.00401e50
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov cl, byte [eax + 0x16]
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x98]
xor ebx, ebx
xor edx, edx
mov bl, byte [eax + 6]
mov dl, byte [eax + 0xe]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x9c]
mov ecx, dword [ecx + 0x24]
sar eax, 1
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0x10]
sar eax, 1
mov dword [esp + 0x48], eax
mov ax, word [edi]
mov edx, dword [edx + 0x24]
mov word [esp + 0x6c], ax
mov ax, word [ebp]
mov dword [esp + 0x84], ebx
mov word [esp + 0x80], ax
mov eax, dword [esp + 0x8c]
test eax, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], 0
jle 0x403673
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push eax
mov ecx, edi
call fcn.00437a90
mov ecx, dword [esi + 0x14]
dec eax
mov edx, dword [esp + 0x2c]
push esi
neg eax
sbb eax, eax
push ecx
add eax, 2
mov ecx, edi
mov dword [esp + 0x40], eax
push eax
mov eax, dword [esp + 0x48]
add edx, eax
call fcn.00401a60
mov edx, esi
mov ecx, edi
call fcn.00401d10
mov eax, dword [esi + 0x28]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
jle 0x40346e
mov ecx, dword [esi + 0x34]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
lea eax, [ecx + edx - 1]
mov ecx, dword [esp + 0x14]
imul eax, dword [esp + 0x60]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x40]
lea ecx, [ecx + edx - 1]
imul ecx, dword [esp + 0x48]
lea ecx, [ecx + edi - 1]
mov edi, dword [esi + 0x24]
test edi, edi
jle 0x40345e
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x18]
lea ecx, [edx + ecx*2]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
lea edx, [edx + eax*2]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], edx
lea eax, [eax + edi*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp eax, 9
mov dword [esp + 0x28], eax
jne 0x40333f
mov ax, word [esp + 0x6c]
mov word [ecx], ax
jmp 0x403424
test eax, eax
jne 0x40334e
mov ax, word [edx]
mov word [ecx], ax
jmp 0x403424
mov si, word [edx]
mov ecx, dword [esp + 0x50]
and esi, 0xffff
mov edi, 9
mov edx, esi
sub edi, eax
and edx, ecx
mov ecx, dword [esp + 0x34]
shr edx, cl
mov ebp, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x74], edi
mov cx, word [ebp + eax*2 + 0x34]
mov eax, 0x38e38e39
imul edx, edi
add edx, ecx
mov ecx, dword [esp + 0x34]
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov edx, esi
shl eax, cl
mov ecx, dword [esp + 0x54]
and edx, ecx
mov ecx, dword [esp + 0x24]
shr edx, cl
xor ecx, ecx
imul edx, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, 0x38e38e39
mov cx, word [ebp + edi*2 + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x24]
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov edx, dword [esp + 0x28]
shl eax, cl
mov ecx, dword [esp + 0x58]
and esi, ecx
mov ecx, ebx
shr esi, cl
xor ecx, ecx
or edx, eax
mov cx, word [ebp + edi*2 + 0xc]
mov eax, 0x38e38e39
mov ebp, dword [esp + 0x78]
imul esi, dword [esp + 0x74]
add esi, ecx
mov dword [esp + 0x74], edx
imul esi
sar edx, 1
mov eax, edx
mov ecx, ebx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x90]
shl edx, cl
mov ecx, dword [esp + 0x44]
or eax, edx
mov edx, dword [esp + 0x40]
mov word [ecx], ax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
add eax, 4
inc edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x24]
add edx, 2
add ecx, 2
inc eax
mov dword [esp + 0x40], edx
cmp eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], eax
jl 0x403323
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x28]
inc edx
cmp edx, eax
mov dword [esp + 0x20], edx
jl 0x4032c3
mov ecx, dword [esi]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
lea ecx, [ecx + ecx*2]
shl ecx, 3
cmp dword [ecx + 0x46518c], edx
jle 0x403616
mov eax, dword [esi + 0x40]
mov ecx, dword [ecx + 0x465188]
add eax, edx
mov edi, dword [esp + 0x10]
imul eax, dword [esp + 0x48]
shl ecx, 1
add eax, edi
mov dword [esp + 0x1c], 0
test ecx, ecx
jle 0x4035fd
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x18]
lea ecx, [edx + eax*2]
mov eax, dword [esp + 0x7c]
sub edx, edx
mov dword [esp + 0x44], ecx
lea eax, [eax + edi*4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp eax, 9
mov dword [esp + 0x28], eax
jne 0x4034f3
mov ax, word [esp + 0x80]
mov word [ecx], ax
jmp 0x4035bf
test eax, eax
je 0x4035bf
mov si, word [edx + ecx]
mov ecx, dword [esp + 0x50]
and esi, 0xffff
mov edi, 9
mov edx, esi
sub edi, eax
and edx, ecx
mov ecx, dword [esp + 0x34]
shr edx, cl
xor ebx, ebx
mov bx, word [ebp + eax*2 + 0x34]
mov eax, 0x38e38e39
imul edx, edi
add edx, ebx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x28]
mov ebx, edx
mov edx, esi
shl ebx, cl
mov ecx, dword [esp + 0x54]
and edx, ecx
mov ecx, dword [esp + 0x24]
shr edx, cl
xor ecx, ecx
mov cx, word [ebp + eax*2 + 0x20]
mov eax, 0x38e38e39
imul edx, edi
add edx, ecx
imul edx
sar edx, 1
mov ecx, edx
mov eax, dword [esp + 0x28]
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x24]
shl edx, cl
and esi, dword [esp + 0x58]
or ebx, edx
xor edx, edx
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x84]
mov ecx, ebx
mov dx, word [ebp + eax*2 + 0xc]
shr esi, cl
mov eax, 0x38e38e39
imul esi, edi
add esi, edx
imul esi
sar edx, 1
mov ecx, edx
mov eax, dword [esp + 0x74]
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
mov esi, dword [esp + 0x90]
shl edx, cl
mov ecx, dword [esp + 0x44]
or eax, edx
mov edx, dword [esp + 0x40]
mov word [ecx], ax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
add eax, 4
inc edi
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
lea eax, [eax + eax*2]
add ecx, 2
inc edi
mov dword [esp + 0x44], ecx
mov eax, dword [eax*8 + 0x465188]
mov dword [esp + 0x1c], edi
shl eax, 1
cmp edi, eax
jl 0x4034d4
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
inc edx
mov dword [esp + 0x20], edx
lea ecx, [ecx + ecx*2]
shl ecx, 3
cmp edx, dword [ecx + 0x46518c]
jl 0x40348c
mov eax, dword [esp + 0x94]
cmp eax, 0xffffffff
jne 0x403639
cmp dword [esp + 0x38], 2
jne 0x403631
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
jmp 0x403642
mov edx, dword [esi + 4]
mov eax, dword [edx + 8]
jmp 0x403640
cmp dword [esp + 0x38], 2
je 0x403642
sar eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x8c]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x40326e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x14