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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46dae1
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x4910a8]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4910a8]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [0x492514]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
xor eax, eax
mov esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x310], eax
push ecx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x38], ebx
call fcn.00403e05
mov edi, 0x496f34
lea eax, [esp + 0x38]
call fcn.00403eb9
mov edi, 0x496f48
lea eax, [esp + 0x3c]
call fcn.00403eb9
mov edi, 0x496f3c
lea eax, [esp + 0x40]
call fcn.00403eb9
mov edi, 0x496f4c
lea eax, [esp + 0x44]
call fcn.00403eb9
cmp ebx, 6
jl 0x4360be
cmp ebx, 8
jg 0x4360be
mov dword [esp + 0x4c], 1
xor edi, edi
cmp dword [ebp + 0x14], edi
jl 0x4362b8
push 0x54
call fcn.004504af
pop ecx
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x310], 1
je 0x4360ee
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.00419b3d
mov edi, eax
cmp ebx, 3
mov byte [esp + 0x310], 0
mov dword [esp + 0x10], edi
je 0x436112
cmp ebx, 5
je 0x436112
cmp ebx, 2
je 0x436112
cmp ebx, 1
jne 0x4361b8
call fcn.00434e96
push 4
pop ebx
push ebx
mov dword [esp + 0x30], eax
mov dword [edi + 0x1c], 1
call fcn.004504af
test eax, eax
pop ecx
mov dword [esp + 0x28], eax
je 0x436142
and dword [eax], 0
call fcn.0041b1fc
mov eax, dword [esp + 0x28]
jmp 0x436144
xor eax, eax
mov dword [edi + 0x24], eax
push ecx
mov eax, esp
and dword [eax], 0
mov eax, dword [esi + 0x78]
sub eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], esp
sub ecx, ebx
push 0x50000000
push ecx
sub eax, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov eax, esp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x21
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esp
mov dword [eax], ecx
push dword [esi + 4]
push dword [edi + 0x24]
call fcn.0042558b
push dword [esi + 4]
lea eax, [esi + 0xe4]
push dword [esp + 0x5c]
mov ecx, edi
push eax
call fcn.00419e9f
add esi, 0x224
lea ebx, [esp + 0x10]
call fcn.00437ce6
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x15c]
add esi, 0x124
mov eax, esi
call fcn.004147a6
lea ebx, [esp + 0x5c]
mov dword [esp + 0x10], eax
call fcn.004125f9
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x68]
mov byte [esp + 0x310], 2
mov dword [esp + 0x5c], ebx
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x4361f0
push dword [esp + 0x50]
lea eax, [esp + 0x2e4]
push eax
mov dword [esp + 0x2d4], edi
call fcn.00403e05
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x60], 2
je 0x43622b
call fcn.00419fed
lea eax, [esp + 0x5c]
push eax
push ebx
mov eax, esi
call fcn.00413353
cmp dword [ebp + 8], 3
jne 0x4362a0
mov esi, dword [esp + 0x24]
call fcn.00433bc7
mov eax, dword [0x492514]
and dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push dword [esp + 0x54]
mov byte [esp + 0x314], 3
call fcn.004501e9
mov dword [esp + 0x18], eax
pop ecx
mov edi, 0x496f34
lea eax, [esp + 0x1c]
call fcn.00403eb9
lea eax, [esp + 0x14]
push eax
add esi, 0x250
push esi
call fcn.004081a4
lea ecx, [esp + 0x20]
call fcn.00404281
lea ecx, [esp + 0x1c]
call fcn.00404281
lea ecx, [esp + 0x2e4]
call fcn.00404281
lea ecx, [esp + 0x2e0]
call fcn.00404281
lea ecx, [esp + 0x44]
call fcn.00404281
lea ecx, [esp + 0x40]
call fcn.00404281
lea ecx, [esp + 0x3c]
call fcn.00404281
lea ecx, [esp + 0x38]
call fcn.00404281
lea ecx, [esp + 0x34]
call fcn.00404281
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.0044f8bf
mov esp, ebp
pop ebp
ret 0x14