Function at 0x402570
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43f681
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.00416005
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x220]
push 0x104
push eax
push ebx
call esi
lea ecx, [esp + 0x220]
push 0x4aa7a0
push ecx
call fcn.0041e257
add esp, 8
cmp eax, ebx
jne 0x4025e8
push ebx
call fcn.0041e1a9
add esp, 4
push 1
call fcn.0041e0b6
lea edx, [esp + 0x324]
push 0x104
push edx
push ebx
call esi
lea eax, [esp + 0x324]
lea ecx, [esp + 0xc]
push eax
call fcn.0042fc6a
push 0x2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x434], ebx
call fcn.00429ddc
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
inc ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00429ce8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x434], 1
call fcn.0042fd35
lea ecx, [esp + 0x10]
mov byte [esp + 0x430], bl
call fcn.0042fbfc
push 0x2e
lea ecx, [esp + 0x10]
call fcn.00429ddc
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 3
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00429d64
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x434], 2
call fcn.0042fd35
lea ecx, [esp + 0x10]
mov byte [esp + 0x430], bl
call fcn.0042fbfc
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov byte [esp + 0x16], 0x30
push ecx
mov byte [esp + 0x1b], bl
mov byte [esp + 0x18], 0x29
mov byte [esp + 0x19], bl
call fcn.0041e07e
add esp, 4
cmp eax, 1
jge 0x402711
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x16]
lea eax, [esp + 0x18]
push edx
push eax
call esi
test eax, eax
je 0x402711
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call esi
test eax, eax
jne 0x402821
mov edi, 0x4aa79c
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4aa798
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call fcn.00430153
mov edx, eax
mov edi, 0x4aa798
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x1a
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4aa79c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004024e0
add esp, 4
add eax, 0x41
push eax
push 0x1a
call fcn.004024e0
add esp, 4
add eax, 0x41
push eax
push 0x1a
call fcn.004024e0
add esp, 4
add eax, 0x41
lea ecx, [esp + 0x12c]
push eax
push str._c_c_c_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x138]
push edx
call fcn.00402500
add esp, 0x1c
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
pop ebp
cmp esi, ebx
je 0x402821
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40281a
push 0x4b400
lea ecx, [esp + 0x14]
push 0x45337c
push ecx
mov byte [esp + 0x1c], 0x5f
mov byte [esp + 0x1d], 0x32
mov byte [esp + 0x1e], bl
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x430], 0xffffffff
call fcn.0042fbfc
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x428
ret