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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x50]
mov ebp, dword [eax + 0x4c]
mov dword [esp + 0xc], edx
sub ecx, edx
mov edx, dword [eax + 0x54]
mov eax, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x74]
sub edx, ebp
mov esi, dword [eax + 0x54]
mov eax, dword [eax + 0x48]
inc ecx
inc edx
mov eax, dword [eax + 4]
mov edi, dword [esi + edi*4]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], ecx
mov eax, dword [eax]
mov dword [esp + 0x38], edx
add eax, 0x48
mov dword [esp + 0x58], edi
mov esi, dword [eax + 8]
mov ebx, dword [eax]
sub esi, ebx
mov ebx, dword [eax + 0xc]
sub ebx, dword [eax + 4]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
inc esi
inc ebx
imul eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
imul eax, ebx
test ecx, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x40], eax
je 0x463bf6
test edx, edx
je 0x463bf6
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x463bf6
test eax, eax
je 0x463bf6
mov al, byte [esp + 0x80]
test al, al
je 0x463a0e
push ebx
push esi
call fcn.00447a60
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x463bf6
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x3c], eax
jb 0x463bde
mov dword [esp + 0x24], 0x50
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x78]
test ecx, eax
je 0x463bbf
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x24]
lea eax, [eax + ecx - 0x50]
lea ecx, [ebp - 1]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x18], ecx
jle 0x463bbf
lea eax, [edx - 1]
mov dword [esp + 0x1c], ecx
mov ecx, eax
imul ecx, ebx
dec ebx
mov dword [esp + 0x50], ecx
imul ebx, eax
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
cdq
dec ecx
idiv ecx
mov edx, dword [esp + 0x68]
add eax, ebp
inc edx
cmp eax, edx
mov dword [esp + 0x60], eax
jl 0x463a9f
mov dword [esp + 0x60], edx
mov eax, ebx
xor edi, edi
cdq
idiv ecx
add eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x14]
cmp eax, edi
jle 0x463b8a
mov edx, dword [esp + 0x44]
mov dword [esp + 0x74], edi
lea eax, [edx - 1]
mov edx, dword [esp + 0x2c]
mov ebx, eax
imul ebx, esi
dec esi
lea ebp, [edx - 1]
imul esi, eax
mov eax, dword [esp + 0x74]
cdq
idiv ebp
mov edx, dword [esp + 0x10]
add eax, edx
inc ecx
cmp eax, ecx
mov dword [esp + 0x5c], eax
jl 0x463af4
mov dword [esp + 0x5c], ecx
mov eax, esi
cdq
idiv ebp
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x30]
add ecx, edx
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 8]
imul edx, dword [esp + 0x18]
mov eax, dword [eax]
add edx, edi
mov eax, dword [eax + edx*4]
test eax, eax
je 0x463b65
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x48]
mov cl, byte [esp + 0x80]
test cl, cl
mov eax, dword [edx + eax*4]
je 0x463b45
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00464650
mov eax, dword [esp + 0x30]
add esp, 8
jmp 0x463b47
mov eax, dword [eax]
lea ecx, [eax + 0x48]
lea edx, [esp + 0x5c]
push ecx
push eax
mov eax, dword [esp + 0x84]
push edx
push eax
call fcn.00466140
mov ecx, dword [esp + 0x74]
add esp, 0x10
mov eax, dword [esp + 0x74]
inc edi
add eax, ebx
add esi, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
cmp edi, eax
jl 0x463ada
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edi, ecx
add ebx, ecx
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x1c], edi
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebx
jl 0x463a80
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
add ecx, 0x50
inc eax
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x10]
cmp eax, ecx
mov dword [esp + 0x3c], eax
jbe 0x463a2a
mov al, byte [esp + 0x80]
test al, al
je 0x463bf6
lea ecx, [esp + 0x28]
push ecx
call fcn.0044b6b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret