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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov ecx, 0x100
jge 0x435162
mov dword [esp + 0xa4], edi
jmp 0x43516d
cmp eax, ecx
jle 0x43516d
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0xa8]
cmp eax, edi
jge 0x435181
mov dword [esp + 0xa8], edi
jmp 0x43518c
cmp eax, ecx
jle 0x43518c
mov dword [esp + 0xa8], ecx
mov ebp, dword [esp + 0xa0]
mov ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
push edi
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x88]
push ecx
push ebx
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x84], edi
call fcn.00438910
push edi
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0xa4]
push eax
push ebx
push esi
call fcn.00438910
mov eax, dword [esp + 0x7c]
push edi
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0xa0]
push edx
push ebx
push eax
call fcn.00438910
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x88], edx
mov edx, dword [ebp]
add esp, 0x3c
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edi
jne 0x435273
mov esi, edx
imul esi, ebx
imul ecx, esi
push ecx
call fcn.0044ea7e
add esp, 4
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x4354e9
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
imul edx, ebx
sub esi, edx
sub eax, edx
cmp ecx, edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], edi
jle 0x4354c3
mov esi, dword [esp + 0xa8]
mov ecx, esi
neg ecx
inc esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
xor esi, esi
cmp ecx, edi
mov dword [esp + 0x34], esi
jle 0x435484
mov edx, dword [esp + 0xa4]
neg edx
mov dword [esp + 0x3c], edx
jmp 0x4352e0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
lea esp, [esp]
test edx, edx
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x20]
lea ecx, [eax + esi + 1]
mov eax, dword [esp + 0x24]
jge 0x435305
xor edx, edx
mov ebp, dword [esp + 0x1c]
cmp ecx, ebp
jle 0x43530f
mov ecx, ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
jge 0x435319
xor eax, eax
mov ebp, dword [esp + 0x20]
cmp ebp, dword [esp + 0x18]
jle 0x435327
mov edi, dword [esp + 0x18]
sub edx, esi
sub ecx, esi
mov esi, dword [esp + 0x2c]
sub eax, esi
sub edi, esi
mov ebp, eax
imul ebp, dword [esp + 0x4c]
add ebp, dword [esp + 0x14]
mov esi, edx
imul esi, ebx
add esi, ebp
mov dword [esp + 0x94], ecx
sub ecx, edx
mov ebp, ecx
imul ebp, ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x4c]
sub edx, ebp
cmp eax, edi
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
jge 0x435405
mov edx, edi
sub edx, eax
mov dword [esp + 0x60], edx
jmp 0x435390
mov edx, dword [esp + 0x94]
cmp dword [esp + 0x8c], edx
jge 0x4353fb
mov dword [esp + 0x50], ecx
movzx edx, word [esi]
mov ecx, dword [esp + 0x64]
mov eax, edx
and eax, ecx
mov ecx, ebx
shr eax, cl
mov ecx, dword [esp + 0x30]
add esi, 2
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x78]
mov eax, edx
and eax, ecx
mov ecx, ebp
shr eax, cl
mov ecx, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
and edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
shr edx, cl
add eax, edx
mov dword [esp + 0x40], eax
dec dword [esp + 0x50]
jne 0x4353a4
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x68]
add esi, dword [esp + 0x6c]
dec dword [esp + 0x60]
jne 0x435390
sub edi, eax
mov eax, dword [esp + 0x40]
imul edi, ecx
xor edx, edx
div edi
xor edx, edx
mov ecx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [esp + 0x48]
div edi
shl esi, cl
mov ecx, ebp
xor edx, edx
shl eax, cl
mov ecx, ebx
mov ebx, dword [esp + 0x14]
or esi, eax
mov eax, dword [esp + 0x30]
div edi
mov edx, dword [esp + 0x3c]
xor edi, edi
shl eax, cl
mov ecx, dword [esp + 0x44]
add ebx, ecx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x44]
or esi, eax
mov eax, dword [esp + 0x10]
mov word [eax], si
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
jl 0x4352d1
mov ebp, dword [esp + 0xa0]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x84]
add esi, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
inc ecx
inc esi
mov dword [esp + 0x24], esi
inc dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4352b0
mov ecx, esi
cmp dword [esp + 0x28], edi
je 0x4354e9
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [esp + 0x2c]
push eax
call fcn.00435100
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0045d8b5
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret