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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x10e0
call fcn.004755b0
mov ebx, dword [esp + 0x1104]
mov esi, dword [esp + 0x1100]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x10dc], eax
mov eax, dword [esp + 0x1128]
push ebx
push eax
call fcn.0045ae3f
add esp, 8
mov dword [esp + 0x38], eax
push 0x40
call fcn.00436fe8
add esp, 4
mov edi, eax
mov eax, dword [eax + 4]
lea ebp, [esp + 0xc9c]
mov dword [ebp], esi
mov ecx, 4
push ecx
mov esi, 4
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, ebx
shr ecx, 0x10
mov dword [esp + 0x34], ecx
mov ecx, ebx
shr ecx, 0x18
mov dword [esp + 0x30], ecx
mov dword [ebp], ebx
push esi
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10f8]
mov dword [ebp], ecx
push esi
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10fc]
mov dword [ebp], ecx
push esi
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [ebp], 0x13
push esi
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10f4]
mov dword [ebp], ecx
push esi
push ebp
push eax
call dword [eax]
add esp, 0xc
mov ebx, dword [edi + 4]
mov esi, dword [esp + 0x110c]
mov dword [ebp], esi
mov eax, 4
push eax
push ebp
push ebx
call dword [ebx]
add esp, 0xc
push esi
push dword [esp + 0x110c]
push ebx
call dword [ebx]
add esp, 0xc
mov esi, dword [edi + 4]
mov ebx, dword [esp + 0x1114]
mov dword [ebp], ebx
mov eax, 4
push eax
push ebp
push esi
call dword [esi]
add esp, 0xc
push ebx
push dword [esp + 0x1114]
push esi
call dword [esi]
add esp, 0xc
mov esi, dword [edi + 4]
mov ebx, dword [esp + 0x111c]
mov dword [ebp], ebx
mov eax, 4
push eax
push ebp
push esi
call dword [esi]
add esp, 0xc
push ebx
push dword [esp + 0x111c]
push esi
call dword [esi]
add esp, 0xc
mov esi, dword [edi + 4]
mov ebx, dword [esp + 0x1124]
mov dword [ebp], ebx
mov eax, 4
push eax
push ebp
push esi
call dword [esi]
add esp, 0xc
push ebx
push dword [esp + 0x1124]
push esi
call dword [esi]
add esp, 0xc
mov eax, dword [edi]
lea ecx, [esp + 0x109c]
push ecx
push edi
call dword [eax + 0xc]
add esp, 8
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
add esp, 4
mov ebx, dword [esp + 0x1100]
lea ecx, [ebx*4]
xor esi, esi
mov eax, dword [esp + 0x10f8]
xor edx, edx
div ecx
mov dword [esp + 0x1c], eax
lea eax, [eax*4]
mov dword [esp + 8], eax
mov edi, eax
imul edi, ebx
push esi
push 0x400
push edi
call fcn.004115d0
add esp, 0xc
mov dword [esp + 0x20], edi
mov ecx, edi
shl ecx, 0xa
mov dword [esp + 0x2c], ecx
push ecx
push esi
mov dword [esp + 8], eax
push eax
call fcn.00478b20
mov eax, ebx
add esp, 0xc
test ebx, ebx
je 0x435acf
mov ebp, dword [esp]
mov eax, 0x40
push eax
call fcn.00436fe8
add esp, 4
mov edi, eax
mov eax, dword [eax + 4]
mov ecx, 0x400
mov dword [esp + 0xc9c], ecx
mov ecx, 4
push ecx
lea ebx, [esp + 0xca0]
push ebx
push eax
call dword [eax]
add esp, 0xc
mov eax, 0x40
push eax
lea eax, [esp + 0x10a0]
push eax
push dword [edi + 4]
call fcn.00410fb0
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esp + 0xc9c], 0
mov ecx, 4
push ecx
push ebx
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esp + 0xc9c], esi
mov ecx, 4
push ecx
push ebx
push eax
call dword [eax]
add esp, 0xc
mov ecx, edi
mov edx, 0x400
push ebp
call fcn.004356d4
mov eax, dword [esp + 0x1104]
add esp, 4
inc esi
mov ecx, 0x400
add ebp, ecx
cmp eax, esi
jne 0x43597d
mov esi, eax
shl esi, 0xa
add esi, dword [esp]
xor ebx, ebx
mov eax, 0x40
push eax
call fcn.00436fe8
add esp, 4
mov edi, eax
mov eax, dword [eax + 4]
mov ecx, 0x400
mov dword [esp + 0xc9c], ecx
mov ecx, 4
push ecx
lea ebp, [esp + 0xca0]
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, 0x40
push eax
lea eax, [esp + 0x10a0]
push eax
push dword [edi + 4]
call fcn.00410fb0
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esp + 0xc9c], 1
mov ecx, 4
push ecx
push ebp
push eax
call dword [eax]
add esp, 0xc
mov eax, dword [edi + 4]
mov dword [esp + 0xc9c], ebx
mov ecx, 4
push ecx
push ebp
push eax
call dword [eax]
add esp, 0xc
mov ecx, edi
mov edx, 0x400
push esi
call fcn.004356d4
add esp, 4
inc ebx
mov eax, 0x400
add esi, eax
cmp dword [esp + 0x1100], ebx
jne 0x435a2c
mov edx, dword [esp + 0x10fc]
test edx, edx
je 0x435fca
mov eax, dword [esp + 0x10f4]
test eax, eax
sete cl
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov esi, ecx
shr esi, 0x10
mov dword [esp + 0x60], esi
shr ecx, 0x18
mov dword [esp + 0x5c], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [esp + 0x58], ecx
mov ecx, edx
shr ecx, 0x18
mov dword [esp + 0x54], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x50], ecx
shr eax, 0x18
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 8]
lea ebx, [eax - 1]
mov dword [esp + 0x14], 2
xor ecx, ecx
lea esi, [esp + 0xc9c]
mov edx, dword [esp + 0x1100]
mov dword [esp + 0x3c], ebx
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x68], eax
mov eax, ecx
shr eax, 0x18
mov dword [esp + 0x64], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x10f4]
xor eax, 2
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov ecx, edi
xor ecx, 2
or eax, ebp
or eax, ecx
mov eax, dword [esp + 0x18]
movzx eax, al
mov ecx, 1
cmove eax, ecx
mov dword [esp + 0x18], eax
test edx, edx
je 0x435f9a
mov ecx, edi
mov eax, dword [esp + 0x1c]
imul ecx, eax
mov edx, edi
shr edx, 0x10
mov dword [esp + 0x70], edx
mov edx, edi
shr edx, 0x18
mov dword [esp + 0x6c], edx
mov edx, edi
or edx, ebp
mov dword [esp + 0x84], edx
lea edx, [edi + 1]
mov dword [esp + 0x40], edx
and edx, 3
imul edx, eax
test ebp, ebp
cmove edx, ebp
mov edi, dword [esp + 8]
mov eax, edx
mov dword [esp + 0x80], edx
sub edi, edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x28], ecx
lea eax, [ecx + ebx]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x14]
lea eax, [ecx*8]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 4], eax
cmp ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 8]
jae 0x435f6f
mov eax, dword [esp + 4]
mov edx, eax
shr edx, 0x10
mov dword [esp + 0x78], edx
shr eax, 0x18
mov dword [esp + 0x74], eax
xor edx, edx
mov ebx, dword [esp + 0x44]
mov edi, ecx
lea eax, [ecx + edx]
mov dword [esp + 0xc], eax
mov dword [esp + 0x8c], edi
add edi, dword [esp + 0x28]
mov dword [esp + 0x88], edi
cmove edi, ebp
dec edi
test byte [esp + 0x18], 1
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], ebx
jne 0x435e5a
test edx, edx
je 0x435c75
mov eax, dword [esp + 0xc]
and eax, 0x7f
jne 0x435e34
push 0x3c8
xor ebp, ebp
push ebp
lea eax, [esp + 0x4dc]
push eax
call fcn.00478b20
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + 0x49c], al
mov byte [esp + 0x49d], ah
mov eax, dword [esp + 0x68]
mov byte [esp + 0x49e], al
mov eax, dword [esp + 0x64]
mov byte [esp + 0x49f], al
mov dword [esp + 0x4a0], ebp
mov eax, dword [esp + 4]
mov byte [esp + 0x4a4], al
mov byte [esp + 0x4a5], ah
mov eax, dword [esp + 0x78]
mov byte [esp + 0x4a6], al
mov eax, dword [esp + 0x74]
mov byte [esp + 0x4a7], al
mov dword [esp + 0x4a8], ebp
mov eax, dword [esp + 0x10]
mov byte [esp + 0x4ac], al
mov byte [esp + 0x4ad], ah
mov eax, dword [esp + 0x70]
mov byte [esp + 0x4ae], al
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x4af], al
mov dword [esp + 0x4b0], ebp
mov eax, dword [esp + 0x20]
mov byte [esp + 0x4b4], al
mov byte [esp + 0x4b5], ah
mov eax, dword [esp + 0x60]
mov byte [esp + 0x4b6], al
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x4b7], al
mov dword [esp + 0x4b8], ebp
mov eax, dword [esp + 0x10fc]
mov byte [esp + 0x4bc], al
mov byte [esp + 0x4bd], ah
mov eax, dword [esp + 0x58]
mov byte [esp + 0x4be], al
mov eax, dword [esp + 0x54]
mov byte [esp + 0x4bf], al
mov dword [esp + 0x4c0], ebp
mov eax, dword [esp + 0x10f4]
mov byte [esp + 0x4c4], al
mov byte [esp + 0x4c5], ah
mov eax, dword [esp + 0x50]
mov byte [esp + 0x4c6], al
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x4c7], al
mov eax, dword [esp + 0xc]
shr eax, 7
inc eax
mov dword [esp + 0x4c8], ebp
mov byte [esp + 0x4cc], al
mov byte [esp + 0x4cd], ah
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x4ce], cl
shr eax, 0x18
mov byte [esp + 0x4cf], al
mov dword [esp + 0x4d0], ebp
mov eax, 0x400
push eax
push ebp
lea eax, [esp + 0x8a4]
push eax
call fcn.00478b20
add esp, 0xc
lea ecx, [esp + 0x89c]
mov edx, ecx
lea eax, [esp + 0x49c]
push eax
call fcn.0043619d
add esp, 4
mov eax, 0x400
push eax
push ebp
push esi
call fcn.00478b20
add esp, 0xc
mov ecx, esi
mov edx, esi
lea eax, [esp + 0x89c]
push eax
call fcn.0043619d
add esp, 4
mov eax, ebx
and eax, 0x3f8
lea esi, [esp + eax]
add esi, 0xca3
mov ecx, dword [esi - 7]
movzx edx, word [esi - 3]
movzx eax, byte [esi - 1]
shl eax, 0x10
or eax, edx
mov ebx, dword [esp + 4]
jmp 0x435e87
mov edx, edi
imul edx, dword [esp + 0x1100]
mov ebx, dword [esp + 4]
add edx, ebx
shl edx, 0xa
mov esi, dword [esp]
movzx ecx, word [esi + edx + 4]
movzx eax, byte [esi + edx + 6]
shl eax, 0x10
or eax, ecx
mov ecx, dword [esi + edx]
add esi, edx
add esi, 7
mov ebp, ebx
mov edx, edi
cmp dword [esp + 0x84], 0
je 0x435ecf
movzx edx, byte [esi]
shl edx, 0x18
or eax, edx
xor edx, edx
div dword [esp + 0x1100]
mov esi, edx
mov ebp, ebx
mov edx, edi
cmp esi, ebx
je 0x435ecf
cmp dword [esp + 0xc], 0
je 0x435ebf
mov ebp, esi
mov edx, dword [esp + 0x28]
jmp 0x435ecb
mov eax, dword [esp + 0x48]
xor edx, edx
div dword [esp + 8]
mov ebp, esi
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], ebp
add edx, dword [esp + 0x7c]
mov eax, edx
xor edx, edx
mov ebp, dword [esp + 8]
div ebp
mov esi, edx
mov eax, ecx
mul ecx
mov eax, edx
mul esi
not edx
mov eax, dword [esp + 0x80]
add eax, esi
add eax, edx
xor edx, edx
div ebp
mov eax, edx
mov ecx, dword [esp + 0x1100]
imul eax, ecx
add eax, dword [esp + 0xc]
mov edx, ecx
shl eax, 0xa
mov esi, dword [esp]
add eax, esi
imul edi, ecx
add edi, ebx
shl edi, 0xa
add edi, esi
mov ecx, dword [esp + 0x88]
imul ecx, edx
add ecx, ebx
shl ecx, 0xa
add ecx, esi
mov edx, edi
push eax
call fcn.0043619d
add esp, 4
mov edi, dword [esp + 0x8c]
inc edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x94]
lea eax, [ecx + edx]
inc eax
inc edx
mov ebx, dword [esp + 0x90]
add ebx, 8
cmp eax, dword [esp + 0x1c]
lea esi, [esp + 0xc9c]
jne 0x435c2e
mov eax, dword [esp + 4]
inc eax
cmp eax, dword [esp + 0x1100]
jne 0x435c00
mov edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1100]
jmp 0x435fa1
inc edi
mov dword [esp + 0x10], edi
mov ecx, ebp
mov dword [esp + 0x14], 0
cmp edi, 4
jne 0x435b65
inc ecx
mov dword [esp + 0x14], 0
cmp ecx, dword [esp + 0x10fc]
jne 0x435b47
jmp 0x435fd8
mov eax, dword [esp + 8]
dec eax
mov ebx, eax
mov edx, dword [esp + 0x1100]
imul ebx, edx
shl ebx, 0xa
mov eax, dword [esp]
add eax, ebx
lea edi, [esp + 0x9c]
push 0x400
push eax
push edi
mov esi, edx
call fcn.00478020
add esp, 0xc
cmp esi, 2
jb 0x436029
mov ecx, esi
dec ecx
mov eax, dword [esp]
lea esi, [ebx + eax]
add esi, 0x400
mov ebx, 0x400
push ebx
push esi
push edi
push edi
mov ebp, ecx
call fcn.0045b655
mov ecx, ebp
add esp, 0x10
add esi, ebx
dec ecx
jne 0x436014
mov ebx, dword [esp + 0x1104]
cmp ebx, 0x40
mov eax, 0x40
cmovb eax, ebx
push eax
call fcn.00436fe8
add esp, 4
mov esi, eax
mov eax, dword [eax + 4]
lea ecx, [esp + 0x98]
mov byte [ecx], bl
mov byte [ecx + 1], bh
mov edx, dword [esp + 0x34]
mov byte [ecx + 2], dl
mov edx, dword [esp + 0x30]
mov byte [ecx + 3], dl
push 4
push ecx
push eax
call dword [eax]
add esp, 0xc
mov ebp, 0x400
push ebp
push edi
push dword [esi + 4]
call fcn.00410fb0
add esp, 0xc
mov ecx, esi
mov edx, ebx
push dword [esp + 0x38]
call fcn.004356d4
add esp, 4
push ebp
lea eax, [esp + 0xca0]
push eax
call fcn.0046d0f4
add esp, 8
lea eax, [esp + 0x89c]
push ebp
push eax
call fcn.0046d0f4
add esp, 8
lea eax, [esp + 0x49c]
push ebp
push eax
call fcn.0046d0f4
add esp, 8
push ebp
push edi
call fcn.0046d0f4
add esp, 8
push dword [esp + 0x2c]
mov esi, dword [esp + 4]
push esi
call fcn.0046d0f4
add esp, 8
push esi
call fcn.00411645
add esp, 4
mov ecx, dword [esp + 0x10dc]
xor ecx, esp
call fcn.00475526
add esp, 0x10e0
pop esi
pop edi
pop ebx
pop ebp
ret