Function at 0x40186c
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x394
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
setne al
and dword [esp + 0x20], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [edi + 4]
cwde
mov dword [esp + 0x14], eax
shl eax, 2
sub ecx, eax
mov dword [esp + 0x2c], ebx
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.004121ab
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x14]
inc dword [eax]
add ecx, 0xfffffffd
add ecx, dword [edi + 8]
mov dword [esp + 0x6c], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x7c], ecx
lea eax, [edx + edx]
mov dword [esp + 0x1c], edx
cmp eax, ecx
jne 0x47e10b
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x40], 0x4b47e4
or esi, 0xffffffff
call fcn.0040156e
test al, al
je 0x47e134
and dword [esp + 0x78], 0
and dword [esp + 0x30], 0
push 3
pop eax
sub eax, dword [esp + 0x14]
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x24], eax
jle 0x401a0e
shl eax, 2
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
inc esi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
call fcn.00401220
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x18]
mov esi, dword [esi + eax]
mov ecx, esi
call fcn.004121ab
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x10]
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 8]
mov edi, esi
imul edi, edi, 0x18
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
inc dword [eax]
lea eax, [esp + 0xa0]
add eax, edi
push eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x18], edi
call fcn.004034ae
test al, al
je 0x47e264
mov eax, dword [esp + 0x10]
lea edi, [esp + edi + 0xa8]
mov dword [esp + 0x48], edi
cmp dword [edi], 0x10
jne 0x4019df
cmp dword [esp + eax + 0xac], 0
je 0x47e15d
mov eax, dword [esp + eax + 0xb0]
add dword [esp + 0x78], eax
add dword [esp + 0x18], 8
lea ecx, [esp + 0x50]
call fcn.0040e281
mov eax, dword [esp + 0x30]
mov edi, dword [ebp + 8]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x7c]
jl 0x40194c
cmp byte [ebp + 0x10], 0
jne 0x47e294
push edi
lea eax, [esp + 0x74]
push eax
mov ecx, ebx
call fcn.00401602
mov dword [esp + 0x28], eax
test eax, eax
je 0x47e2a8
sub esp, 0x10
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.004016e1
push 4
pop eax
sub eax, dword [esp + 0x24]
push eax
push edi
lea eax, [esp + 0x88]
push eax
call fcn.00401760
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push eax
call fcn.00422854
test eax, eax
je 0x47e2c1
lea eax, [esi + 1]
push eax
xor edi, edi
inc edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x88], esi
call fcn.00402ed0
add esp, 0xc
cmp dword [esp + 0x80], edi
jne 0x401ab5
push 0
push edi
push 0
push dword [ebp + 0xc]
call fcn.0040b180
add esp, 0x10
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00401bb4
xor esi, esi
cmp dword [esp + 0x7c], esi
jle 0x401b30
mov eax, dword [esp + 0x24]
shl eax, 2
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
push eax
push edi
push 0
push dword [ebp + 0xc]
mov dword [esp + 0x34], eax
call fcn.0040b180
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
imul eax, eax, 0x18
cmp dword [esp + eax + 0xa8], 0x10
jne 0x47e2fe
mov eax, dword [ebp + 8]
push 0xc
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov esi, dword [ecx + eax + 4]
mov ecx, esi
call fcn.00404d65
test al, al
je 0x47e2e0
push esi
mov ecx, ebx
call fcn.0040c098
mov esi, dword [esp + 0x24]
add dword [esp + 0x14], 8
cmp esi, dword [esp + 0x7c]
jl 0x401ac8
cmp byte [ebp + 0x10], 0
jne 0x401b53
mov eax, dword [ebp + 8]
push 4
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
call fcn.00404d65
test al, al
je 0x401b53
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x38]
call fcn.00401b70
lea ecx, [esp + 0x60]
call fcn.0040e281
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406a80
and dword [esi], 0
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
push 4
add ecx, ebx
call fcn.00421562
jmp 0x401b5c
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406a80
and dword [esi], 0
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
push 2
add ecx, ebx
call fcn.00421562
jmp 0x401b53
mov eax, dword [ebp + 8]
push 0xc
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov eax, dword [ecx + eax + 4]
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.00404d65
test al, al
je 0x47e24d
mov ecx, dword [esp + 0x20]
call fcn.0044e3e2
mov edx, dword [esp + 0x10]
lea ecx, [eax - 1]
shr ecx, 2
add dword [esp + 0x1c], ecx
lea eax, [ecx + 1]
imul eax, dword [esp + edx + 0xb0]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x78], eax
sub edx, ecx
mov dword [esp + 0x20], ecx
cmp edx, esi
jle 0x47e1f7
mov eax, edx
imul eax, eax, 0x18
lea ebx, [esp + 0xa0]
add ebx, eax
lea eax, [edx + ecx]
imul eax, eax, 0x18
sub edx, esi
lea eax, [esp + eax + 0xa0]
push 6
mov esi, ebx
mov edi, eax
pop ecx
sub ebx, 0x18
sub eax, 0x18
rep movsd dword es:[edi], dword [esi]
dec edx
jne 0x47e1d5
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + eax + 4]
cmp dword [eax + 0xc], 0xc
jne 0x47e20d
mov edx, dword [eax]
jmp 0x47e20f
xor edx, edx
mov edx, dword [edx + 8]
inc ecx
add ecx, esi
cmp esi, ecx
jge 0x47e247
mov ebx, dword [esp + 0x10]
sub ecx, esi
add esi, ecx
mov eax, dword [edx]
and dword [edi + 4], 0
mov dword [edi - 8], eax
mov dword [edi], 0x10
mov eax, dword [esp + ebx + 0xb0]
mov dword [edi + 8], eax
lea edx, [edx + 4]
lea edi, [edi + 0x18]
dec ecx
jne 0x47e221
mov ebx, dword [esp + 0x2c]
dec esi
jmp 0x4019ea
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406a80
push 0
mov dword [esi + 0xc], 1
push 5
jmp 0x47e277
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406a80
xor edi, edi
inc edi
push 0
mov dword [esi + 0xc], edi
push edi
and dword [esi], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00421562
lea ecx, [esp + 0x50]
call fcn.0040e281
jmp 0x401b53
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
call fcn.0044e3bb
mov dword [esp + 0x70], eax
jmp 0x401a31
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406a80
and dword [esi], 0
mov dword [esi + 0xc], 1
jmp 0x401b53
push 0xffffffffffffffff
push 0x67
mov ecx, ebx
call fcn.0044fa8a
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401a74
mov ecx, esi
call fcn.0044e3bb
mov ecx, ebx
mov esi, eax
call fcn.00406a80
mov dword [ebx + 0xc], 7
mov dword [ebx], esi
jmp 0x401b21
push ebx
lea eax, [esp + eax + 0xa4]
push eax
call fcn.00401bb4
jmp 0x401b21