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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x44]
cmp byte [edi + 0x36], 0
je 0x435317
cmp byte [esi + 0x78], 7
mov ax, word [edi + 0x54]
mov word [esi + 0x70], ax
mov cx, word [edi + 0x58]
mov word [esi + 0x72], cx
jne 0x435296
cmp byte [esp + 0x4c], 0
je 0x4352a6
mov dx, word [edi + 0x5c]
mov word [esi + 0x74], dx
mov ax, word [edi + 0x60]
mov word [esi + 0x76], ax
mov edx, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [0x47d5e4]
or ebx, 0xffffffff
cmp dword [edi + 0x54], ebx
jne 0x4352c5
mov ax, word [esp + 0x20]
mov word [esi + 0x70], ax
cmp dword [edi + 0x58], ebx
jne 0x4352d3
mov cx, word [esp + 0x24]
mov word [esi + 0x72], cx
mov eax, dword [esi]
lea edx, [esp + 0x20]
push edx
push eax
call dword [0x47d640]
cmp dword [edi + 0x5c], ebx
jne 0x4352f2
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov word [esi + 0x74], cx
cmp dword [edi + 0x60], ebx
je 0x435301
cmp byte [esi + 0x78], 0
jne 0x435554
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov word [esi + 0x76], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
movzx eax, word [esi + 0x6e]
mov edx, dword [edi]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x50], eax
call dword [0x47d5e4]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edi + 0x40]
mov ebx, dword [edi + 0x44]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ebx
mov ebp, 1
test eax, eax
jne 0x435360
mov dword [esp + 0x4c], ebp
test ecx, ecx
je 0x435360
mov dword [esp + 0x4c], ecx
test edx, edx
jne 0x435370
mov dword [esp + 0x1c], ebp
test ebx, ebx
je 0x435370
mov dword [esp + 0x1c], ebx
cmp dword [edi + 0x188], 0
je 0x435387
push 0xf
call dword [0x47d4f8]
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ecx, dword [esi]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [0x47d640]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
sub eax, edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push edx
push eax
sub ebp, ecx
mov dword [esp + 0x28], ecx
call dword [0x47d620]
mov ecx, dword [esp + 0x20]
mov eax, ecx
imul eax, dword [esp + 0x44]
cdq
idiv dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
mov word [esi + 0x70], ax
mov eax, edi
imul eax, ebx
cdq
idiv dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov word [esi + 0x72], ax
mov eax, ebp
imul eax, dword [esp + 0x44]
cdq
idiv dword [esp + 0x4c]
mov word [esi + 0x74], ax
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x14]
cdq
idiv ebx
mov word [esi + 0x76], ax
mov eax, dword [esp + 0x48]
test ax, ax
je 0x435554
test eax, 0x100
je 0x435475
mov word [esi + 0x74], bp
test al, 6
jne 0x435475
test al, 8
je 0x435444
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
mov edx, ecx
sub edx, eax
mov word [esi + 0x70], dx
jmp 0x435471
mov eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x435471
mov ebx, dword [esp + 0x4c]
mov eax, ecx
sub eax, ebx
add eax, ebp
imul eax, dword [esp + 0x44]
cdq
idiv ebx
mov ebx, dword [esp + 0x1c]
sub eax, ebp
add eax, dword [esp + 0x44]
mov word [esi + 0x70], ax
mov eax, dword [esp + 0x48]
test eax, 0x200
je 0x4354cd
mov dx, word [esp + 0x18]
mov word [esi + 0x76], dx
test al, 0x60
jne 0x4354cd
test al, al
jns 0x4354a2
mov eax, dword [esp + 0x14]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov edx, edi
sub edx, eax
mov word [esi + 0x72], dx
jmp 0x4354c9
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x4354c9
mov eax, edi
sub eax, ebx
add eax, dword [esp + 0x18]
imul eax, dword [esp + 0x14]
cdq
idiv ebx
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov word [esi + 0x72], ax
mov eax, dword [esp + 0x48]
mov edx, eax
and edx, 2
je 0x4354d8
mov word [esi + 0x70], cx
test al, 4
je 0x43550c
test dx, dx
je 0x4354f8
sub cx, word [esi + 0x70]
sub cx, word [esp + 0x4c]
add cx, word [esp + 0x44]
add cx, bp
mov word [esi + 0x74], cx
jmp 0x43550c
sub ecx, dword [esp + 0x4c]
sub cx, word [esi + 0x74]
add cx, word [esp + 0x44]
add cx, bp
mov word [esi + 0x70], cx
mov ecx, eax
and ecx, 0x20
je 0x435517
mov word [esi + 0x72], di
test al, 0x40
je 0x435554
test cx, cx
je 0x43553f
sub di, word [esi + 0x72]
sub di, bx
add di, word [esp + 0x14]
add di, word [esp + 0x18]
mov word [esi + 0x76], di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
sub di, word [esi + 0x76]
sub di, bx
add di, word [esp + 0x14]
add di, word [esp + 0x18]
mov word [esi + 0x72], di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc