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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov dl, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
and dl, 2
mov dword [ebp - 0x18], 0
mov byte [ebp + 0xc], dl
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x74]
movzx ecx, word [edi + 0x46]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
movsx eax, byte [edi + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0xc], ecx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [ebp - 0x14], ecx
test dl, dl
je 0x436012
cmp byte [ebx + 8], 0
je 0x436001
push ecx
push ebx
call fcn.00417080
movzx esi, word [ebx + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x24]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x436001
mov dword [ebp - 0x18], 1
jmp 0x436012
push edi
call fcn.00430b70
add esp, 4
test eax, eax
jne 0x4362b5
cmp byte [ebx + 8], 0
jne 0x436053
and byte [edi + 1], 0xf1
xor eax, eax
cmp byte [edi], 1
mov word [edi + 0x2a], ax
jne 0x436042
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x436042
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x436042
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x436053
push edi
call fcn.00416cd0
add esp, 4
test eax, eax
jne 0x4362b5
test byte [edi + 1], 0x20
je 0x436070
push edi
push dword [edi + 0x3c]
push dword [ebp - 4]
call fcn.00430b20
add esp, 0xc
test eax, eax
jne 0x4362b5
cmp dword [edi + 0x70], 0
jne 0x43608c
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0x3c]
push dword [ebp + 8]
call fcn.004256b0
add esp, 0x14
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4360ae
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4360ae
cmp dword [edx + 0x60], 0
je 0x4360df
push ecx
call fcn.0046ade0
jmp 0x4360d4
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x4362b5
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4360cf
call fcn.0042b000
jmp 0x4360d4
call fcn.0042c1a0
add esp, 4
test eax, eax
jne 0x4362b5
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.00417b00
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0x22]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.0041cd00
mov eax, dword [ebp + 8]
add esp, 0x1c
test eax, eax
jne 0x4362b5
cmp byte [ebx + 8], al
jne 0x4361df
movsx eax, byte [edi + 0x44]
mov ecx, dword [ebp - 8]
dec eax
mov esi, dword [edi + 0x74]
cmp ecx, eax
jge 0x436130
mov eax, dword [edi + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x436133
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jae 0x436172
push 0x10a17
call fcn.00439ab0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ecx
push esi
call eax
push dword [esi + 0x48]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], eax
call fcn.0044c2b0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x4361be
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 4]
add eax, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffc
push eax
push dword [ebp - 0xc]
push ebx
call fcn.004252c0
add esp, 0x1c
lea eax, [ebp + 8]
push eax
movzx eax, word [esi + 0x16]
push dword [ebp - 0x14]
dec eax
push eax
push esi
call fcn.0041cd00
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4362b5
push edi
call fcn.00413d50
mov esi, eax
add esp, 4
test esi, esi
jne 0x4362b3
movsx ecx, byte [edi + 0x44]
cmp ecx, dword [ebp - 8]
jle 0x436252
push dword [edi + 0x74]
call fcn.0042f0a0
dec byte [edi + 0x44]
add esp, 4
movsx eax, byte [edi + 0x44]
mov esi, dword [ebp - 8]
cmp eax, esi
jle 0x436238
mov cl, byte [edi + 0x44]
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x436230
push eax
call fcn.0042f0a0
add esp, 4
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x436214
movsx eax, byte [edi + 0x44]
push edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.00413d50
mov esi, eax
add esp, 4
test esi, esi
jne 0x4362b3
cmp dword [ebp - 0x18], 0
je 0x43628e
mov byte [edi], 2
movzx eax, word [ebx + 0x16]
cmp dword [ebp - 0xc], eax
jb 0x43627e
mov dword [edi + 0x40], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004276c0
add esp, 4
mov esi, eax
cmp byte [ebp + 0xc], 0
je 0x4362ab
push edi
call fcn.00416db0
add esp, 4
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret