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

Disassembly:
push 0xffffffffffffffff
push 0x46e098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
xor ebx, ebx
mov esi, ecx
cmp ebp, ebx
push edi
mov dword [esp + 0x14], esi
je 0x417918
mov edi, dword [esp + 0x78]
cmp edi, ebx
jle 0x417918
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x7c]
push ecx
push eax
mov ecx, esi
call fcn.00417a90
cmp edi, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
jae 0x417742
lea ecx, [esp + 0x78]
push 0x480f30
push ecx
mov byte [esp + 0x80], bl
call fcn.0042f0e4
mov eax, ebp
push 4
sub edi, 0xc
push str.HELP
push eax
mov dword [esp + 0x80], eax
add ebp, 0xc
mov dword [esp + 0x84], edi
call fcn.0042f290
add esp, 0xc
test eax, eax
jne 0x417918
mov edx, dword [esp + 0x74]
push 4
add edx, 4
push str.1000
push edx
call fcn.0042f290
add esp, 0xc
test eax, eax
jne 0x417918
mov eax, dword [esp + 0x74]
mov dword [esp + 0x74], ebx
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [esp + 0x10], eax
jbe 0x4178f4
add ebp, 4
jmp 0x4177b3
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x78]
cmp edi, ebx
jle 0x4178f4
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
cmp eax, ebx
lea edx, [eax + ecx]
jl 0x417918
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jg 0x417918
mov cl, byte [esp + 0x78]
mov edi, edx
mov byte [esp + 0x30], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00402b51
mov dl, byte [esp + 0x78]
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x70], ebx
mov byte [esp + 0x44], dl
call fcn.00402ab7
mov eax, dword [ebp - 4]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 1
mov dword [esp + 0x54], eax
call fcn.0040f690
lea edx, [esp + 0x50]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x74], 2
call fcn.00411bf0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00411e30
mov esi, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 1
call fcn.00402ab7
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], bl
call fcn.00402ab7
mov eax, dword [0x472dc0]
lea edx, [esp + 0x30]
push eax
push ebx
lea ecx, [esi + 0x10]
push edx
call fcn.00402d6a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
cmp eax, ebx
je 0x4178c5
mov cl, byte [eax - 1]
cmp cl, bl
je 0x4178bb
cmp cl, 0xff
je 0x4178bb
dec cl
mov byte [eax - 1], cl
jmp 0x4178c5
dec eax
push eax
call fcn.0045d9ca
add esp, 4
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
inc eax
add ebp, 8
sub edx, 8
cmp eax, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
jb 0x4177ab
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
xor eax, eax
pop edi
cmp edx, ecx
pop esi
pop ebp
pop ebx
sete al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8