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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x423cc1
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x431034]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0xc]
jge 0x41735b
mov ecx, edx
mov dword [esp + 0x14], ecx
jmp 0x417123
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x417134
add edx, eax
cmp ecx, edx
jge 0x417349
mov eax, dword [ebp + 8]
push dword [eax + ecx*4]
lea eax, [esp + 0x14]
push eax
call fcn.00401d9d
and dword [esp + 0x68], 0
lea eax, [esp + 0x10]
call fcn.00417694
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x417338
js 0x417370
movzx ecx, word [esi]
cmp ecx, 0x2d
je 0x4171d2
test eax, eax
js 0x417370
cmp ecx, 0x2f
je 0x4171d2
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push 0x427608
push eax
call fcn.00401d9d
mov byte [esp + 0x6c], 8
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004020aa
add eax, 0x10
mov dword [esi], eax
push 1
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x78], 0
call fcn.00416f38
mov byte [esp + 0x68], 9
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x20]
lea esi, [esp + 0x2c]
jmp 0x41728a
push 0x428778
push esi
call dword [sym.imp.MSVCR100.dll_wcspbrk]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x417208
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 1
jne 0x417200
or dword [esp + 0x68], 0xffffffff
lea eax, [ecx - 0x10]
jmp 0x417344
test esi, esi
jg 0x417294
mov ecx, dword [ecx - 0xc]
lea eax, [esp + 0x18]
push eax
dec ecx
lea eax, [esp + 0x14]
call fcn.00414a07
lea edi, [esp + 0x10]
mov byte [esp + 0x68], 1
call fcn.004088b6
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004011ad
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push 0x427608
push eax
call fcn.00401d9d
mov byte [esp + 0x6c], 2
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004020aa
add eax, 0x10
mov dword [esi], eax
push 2
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x78], 0
call fcn.00416f38
mov byte [esp + 0x68], 3
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x20]
lea esi, [esp + 0x3c]
call fcn.00416fe2
jmp 0x417338
lea eax, [esp + 0x20]
push eax
lea ecx, [esi - 1]
lea eax, [esp + 0x14]
call fcn.00417739
mov byte [esp + 0x68], 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [esp + 0x1c]
sub ecx, esi
push eax
dec ecx
lea eax, [esp + 0x14]
call fcn.00414a07
mov byte [esp + 0x68], 5
mov edi, dword [esp + 0x1c]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004020aa
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x6c], 6
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
mov dword [esp + 0x2c], eax
call fcn.004020aa
add eax, 0x10
mov dword [esi], eax
push 3
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x78], 5
call fcn.00416f38
mov byte [esp + 0x68], 7
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x20]
lea esi, [esp + 0x4c]
call fcn.00416fe2
lea eax, [edi - 0x10]
call fcn.004011ad
mov eax, dword [esp + 0x24]
call fcn.004011ad
or dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004011ad
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x417120
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00401000
int3