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

Disassembly:
sub esp, 0x70
mov eax, dword [0x46b014]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
push edi
lea esi, [esp + 0x90]
mov dword [esp + 0x10], eax
lea edi, [esp + 0x38]
mov byte [esp + 0x18], 0x2e
movsd dword es:[edi], dword [esi]
mov ebp, edx
mov ebx, ecx
mov dword [esp + 0x2c], ebp
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
movsd dword es:[edi], dword [esi]
push eax
push ecx
mov dword [esp + 0x38], ecx
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3c], eax
movsd dword es:[edi], dword [esi]
call fcn.004028f6
pop ecx
pop ecx
mov ecx, eax
movsx eax, byte [esp + 0x40]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call fcn.00402338
mov edx, dword [esp + 0x28]
mov esi, eax
mov edi, dword [esp + 0x38]
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
add esi, eax
cmp byte [esp + 0x3c], 1
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
lea ecx, [eax + edx]
lea ebp, [ecx - 1]
mov dword [esp + 0x14], ebp
je 0x41806c
cmp byte [esp + 0x3c], 0
jne 0x417ecd
cmp ebp, 0xfffffffc
jl 0x41806c
push 0x10
test edi, edi
pop eax
cmovg eax, edi
cmp ebp, eax
jge 0x41806c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
test eax, eax
js 0x417f67
mov ecx, eax
call fcn.00402338
mov ecx, dword [esp + 0x38]
add esi, eax
sub ecx, dword [esp + 0x74]
test byte [esp + 0x44], 0x10
mov dword [esp + 0x20], ecx
je 0x417f0f
test ecx, ecx
jg 0x417f07
cmp byte [esp + 0x3c], 2
je 0x417f0f
xor ecx, ecx
inc ecx
mov dword [esp + 0x20], ecx
call fcn.00402338
inc esi
add esi, eax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
mov dword [esp + 0x48], eax
mov ecx, ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x8c]
call fcn.0041c9f9
add esp, 0xc
jmp 0x418153
test ecx, ecx
jle 0x417fdc
mov al, byte [esp + 0x44]
sub edi, edx
xor edx, edx
and al, 0x10
cmovne edx, edi
xor ecx, ecx
test edx, edx
mov dword [esp + 0x2c], edx
cmovg ecx, edx
call fcn.00402338
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], ecx
inc eax
lea ecx, [esp + 0x30]
add eax, esi
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x48]
push ecx
push eax
push ecx
push dword [esp + 0x90]
mov ecx, ebx
call fcn.0041f080
add esp, 0x10
jmp 0x418153
neg ecx
mov dword [esp + 0x78], ecx
test edx, edx
jne 0x417ff3
test edi, edi
js 0x417ff3
cmp edi, ecx
cmovl ecx, edi
mov dword [esp + 0x78], ecx
test ecx, ecx
jne 0x418006
test edx, edx
jne 0x418006
test byte [esp + 0x44], 0x10
jne 0x418006
xor al, al
jmp 0x418008
mov al, 1
mov byte [esp + 0x1f], al
call fcn.00402338
xor ecx, ecx
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x1f], cl
setne cl
inc ecx
add ecx, esi
add eax, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x1f]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x48]
push ecx
push eax
push dword [esp + 0x8c]
mov ecx, ebx
call fcn.0041ca84
jmp 0x417f5f
xor ebp, ebp
test byte [esp + 0x44], 0x10
je 0x41808d
sub edi, edx
cmovns ebp, edi
mov ecx, ebp
call fcn.00402338
add esi, eax
mov al, byte [esp + 0x18]
mov dword [esp + 0x20], eax
jmp 0x4180a2
movzx ecx, byte [esp + 0x18]
xor eax, eax
cmp edx, 1
cmove ecx, eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x18], cl
mov edi, dword [esp + 0x14]
mov eax, edi
cdq
xor eax, edx
sub eax, edx
push 2
pop edx
cmp eax, 0x64
jl 0x4180c2
xor edx, edx
cmp eax, 0x3e8
setge dl
add edx, 3
xor ecx, ecx
cmp byte [esp + 0x20], cl
setne cl
add ecx, 2
add ecx, edx
call fcn.00402338
add esi, eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x18]
mov byte [esp + 0x5c], al
mov al, byte [esp + 0x44]
not al
mov dword [esp + 0x54], ecx
and al, 1
mov dword [esp + 0x60], ebp
shl al, 5
lea ecx, [esp + 0x48]
or al, 0x45
mov dword [esp + 0x68], edi
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jle 0x41813e
push ecx
push esi
push dword [esp + 0x8c]
mov edx, eax
lea ecx, [esp + 0x20]
call fcn.0041c96e
add esp, 0xc
jmp 0x41814f
push dword [esp + 0x84]
lea eax, [esp + 0x30]
push eax
call fcn.00418168
mov eax, dword [eax]
mov dword [ebx], eax
mov ecx, dword [esp + 0x7c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dd4f
add esp, 0x70
ret