Function at 0x417270
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x57b690
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [esp + 0x6c], ebx
jne 0x4172a9
mov eax, 0x80070057
jmp 0x41746d
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x68], ebx
call fcn.00416c10
lea edi, [esp + 0x18]
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 1
call fcn.00416ee0
test eax, eax
jne 0x4172fd
lea esi, [esp + 0x28]
call fcn.00416c90
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4172f3
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0x80004005
jmp 0x41746d
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edi, eax
jbe 0x417313
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov ebp, ecx
lea esp, [esp]
cmp dword [esp + 0x1c], eax
mov esi, eax
jbe 0x41732e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor ecx, ecx
cmp ebp, ecx
je 0x41733c
lea edx, [esp + 0x18]
cmp ebp, edx
je 0x417344
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor ecx, ecx
cmp edi, esi
je 0x4173f1
cmp ebp, ecx
jne 0x417356
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebp + 8]
jb 0x417361
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi]
call fcn.00416ce0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4173ba
cmp edi, dword [ebp + 8]
jb 0x417394
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4173ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [ebp + 8]
jb 0x4173e5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
add edi, 4
jmp 0x417320
mov eax, dword [esp + 0x4c]
neg ebx
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
cmp eax, ecx
mov esi, ebx
je 0x417423
mov edi, dword [esp + 0x50]
call fcn.00417950
mov ecx, dword [esp + 0x4c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
je 0x41745a
mov eax, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
je 0x417456
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ecx
je 0x41746b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 4