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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], eax
xor edx, edx
push esi
mov ecx, dword [ebx + 0x10]
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x94]
div dword [ecx + 0x98]
or byte [ecx + 0x14], 4
mov esi, dword [ebx + 0x14]
mov edx, eax
mov edi, dword [ecx + 0x18]
lea ebx, [edx - 1]
not ebx
lea eax, [esi - 1]
and ebx, eax
inc ebx
mov dword [esp + 0x20], ebx
cmp esi, edi
jbe 0x43619d
sub esi, ebx
inc esi
mov dword [esp + 0x18], esi
jmp 0x4361b7
lea eax, [edx - 1]
add eax, ebx
cmp eax, edi
jbe 0x4361b1
mov esi, edi
sub esi, ebx
inc esi
mov dword [esp + 0x18], esi
jmp 0x4361b7
mov esi, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], 0
test esi, esi
jle 0x4363d5
mov edi, ebx
lea esp, [esp]
cmp dword [esp + 0x1c], 0
jne 0x4363d5
mov eax, dword [esp + 0x2c]
cmp edi, dword [eax + 0x14]
je 0x436228
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x436228
mov edx, edi
mov ecx, eax
call fcn.0042fee0
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x436228
mov edx, edi
call fcn.00435cb0
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x436280
test byte [ecx + 0x18], 4
mov edx, 1
mov eax, dword [esp + 0x14]
cmovne eax, edx
mov dword [esp + 0x14], eax
call fcn.00435d10
jmp 0x436280
mov eax, dword [0x4e5bbc]
cdq
idiv dword [ecx + 0x98]
inc eax
cmp edi, eax
je 0x436284
lea eax, [esp + 0x24]
mov edx, edi
push 0
push eax
call fcn.00435910
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x436280
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00435f90
test byte [esi + 0x18], 4
mov ecx, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmovne eax, ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00435d10
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
inc edi
inc eax
mov dword [esp + 0x28], eax
cmp eax, esi
jl 0x4361d0
cmp dword [esp + 0x1c], 0
jne 0x4363d5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4363d5
jmp 0x4362b4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xcc]
push 0
push ebx
push dword [eax + 0x28]
call dword [0x4e655c]
mov ecx, dword [esp + 0x1c]
mov edx, eax
add esp, 0xc
mov ecx, dword [ecx + 0xcc]
test edx, edx
je 0x4363c5
mov eax, dword [edx + 4]
cmp dword [eax], 0
jne 0x4362f2
push edx
mov edx, ebx
call fcn.004306a0
add esp, 4
jmp 0x436309
xor edx, edx
cmp dx, word [eax + 0x1a]
jne 0x4362fd
inc dword [ecx + 0xc]
inc word [eax + 0x1a]
cmp ebx, 1
jne 0x436309
mov dword [ecx + 0x2c], eax
test eax, eax
je 0x4363c5
or word [eax + 0x18], 4
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x43635f
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004adf70
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x436366
mov ecx, eax
call fcn.00430740
cmp dword [ebx + 0x78], 0
jne 0x4363c1
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4363c1
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x4363ba
test al, al
je 0x4363ba
cmp al, 2
jb 0x4363a6
mov eax, dword [0x4e8c8c]
test eax, eax
je 0x436392
call eax
mov ecx, ebx
call fcn.004366c0
mov eax, dword [0x4e8c90]
test eax, eax
je 0x4363ba
call eax
jmp 0x4363ba
cmp byte [ebx + 4], 0
jne 0x4363ba
push 0
xor edx, edx
mov ecx, ebx
call fcn.00432e90
add esp, 4
mov ecx, ebx
call fcn.00432d00
mov ebx, dword [esp + 0x20]
inc ebx
dec esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
jne 0x4362b0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
and byte [eax + 0x14], 0xfb
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret