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

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x54]
mov ebx, ebp
imul ebx, ebx, 0x398
push esi
push edi
mov edi, dword [esp + 0x58]
add ebx, dword [edi + 0x18]
push 0x54
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], ebx
call fcn.0041835e
mov ecx, dword [edi + 0x10]
mov esi, eax
mov eax, ebp
cdq
idiv ecx
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x50], esi
imul ecx, edx
mov dword [esp + 0x60], eax
mov eax, dword [ebp]
push eax
add ecx, dword [edi]
push ecx
mov dword [esp + 0x64], edx
call fcn.0040f570
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0xc]
imul eax, dword [esp + 0x68]
mov edx, dword [ebp + 4]
mov ecx, dword [edi + 4]
push edx
add eax, ecx
push eax
call fcn.0040f570
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x38], eax
mov ecx, dword [ebp + 8]
inc edx
imul edx, dword [edi + 8]
push ecx
add edx, dword [edi]
push edx
call fcn.0040f560
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0xc]
inc ecx
imul ecx, dword [edi + 0xc]
push eax
add ecx, dword [edi + 4]
push ecx
call fcn.0040f560
mov dword [esi + 0x40], eax
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0x10]
shl eax, 4
push eax
call fcn.0041835e
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
xor eax, eax
add esp, 0x28
cmp ecx, eax
mov dword [esp + 0x24], eax
jle 0x412e08
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jmp 0x412bf2
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + 0x30]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add ebx, edi
mov edi, dword [ecx + 0x394]
add edi, edx
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax + edx]
mov dword [ebx], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + edx + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
mov dword [ebx + 8], eax
shl eax, 4
push eax
mov dword [esp + 0x30], edi
call fcn.0041835e
mov ecx, dword [ebx]
mov dword [ebx + 0xc], eax
mov edx, dword [esi + 0x34]
push ecx
push edx
call fcn.0040f5b0
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
push eax
push ecx
call fcn.0040f5b0
mov edx, dword [ebx]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x3c]
push edx
push eax
call fcn.0040f5b0
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x40]
push ecx
push edx
mov dword [esp + 0x5c], eax
call fcn.0040f5b0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 8]
add esp, 0x24
cmp eax, ecx
jle 0x412c87
mov dword [esp + 0x20], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x5c], ecx
jle 0x412dca
lea eax, [edi + 0x3c8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x58], eax
jmp 0x412cb0
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x2c]
lea ecx, [ecx]
mov esi, dword [ebx + 0xc]
mov edx, dword [esp + 0x10]
mov cl, byte [edi]
add esi, edx
test cl, 1
je 0x412ccf
mov ecx, dword [eax - 0x84]
mov dword [esi], ecx
mov edx, dword [eax]
mov dword [esi + 4], edx
jmp 0x412cdc
mov dword [esi], 0xf
mov dword [esi + 4], 0xf
mov edi, dword [ebx + 8]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
sub edi, edx
dec edi
push edi
push eax
call fcn.0040f5c0
mov ecx, dword [esp + 0x3c]
push edi
push ecx
mov ebp, eax
call fcn.0040f5c0
mov edx, dword [esp + 0x48]
push edi
push edx
mov dword [esp + 0x58], eax
call fcn.0040f5c0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
push edi
push eax
call fcn.0040f5c0
mov ecx, dword [esi]
push ecx
push ebp
mov dword [esp + 0x70], eax
call fcn.0040f5e0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x68]
push edx
push eax
shl ebp, cl
call fcn.0040f5e0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x74]
shl eax, cl
mov ecx, dword [esi]
push ecx
push edx
mov dword [esp + 0x78], eax
call fcn.0040f5c0
mov ecx, dword [esi]
mov edx, dword [esp + 0x80]
mov edi, eax
mov eax, dword [esi + 4]
shl edi, cl
mov ecx, eax
push ecx
push edx
mov dword [esp + 0x84], eax
call fcn.0040f5c0
mov edx, dword [esp + 0x84]
mov ecx, edx
shl eax, cl
mov ecx, dword [esi]
sub edi, ebp
sar edi, cl
sub eax, dword [esp + 0x80]
mov ecx, edx
mov edx, dword [esp + 0x50]
sar eax, cl
mov dword [esi + 8], edi
add esp, 0x40
add edx, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov ecx, dword [ebx + 8]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x10], edx
jl 0x412ca5
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
inc eax
add ebx, 0x10
add edi, 0x44c
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
jl 0x412bee
mov ebx, dword [esp + 0x28]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], 1
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x24], edx
mov eax, dword [ebx + 4]
pop edi
mov dword [esi + 0x28], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret