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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
movzx eax, byte [ebp + 0x10]
and dword [esp + 0x2c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x10], eax
shl eax, 2
mov dword [esp + 0x34], ebx
mov ecx, dword [edi + 4]
sub ecx, eax
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.00406f1d
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffd
mov dword [esp + 0x74], eax
inc dword [eax]
add ecx, dword [edi + 8]
mov eax, ecx
mov dword [esp + 0x84], ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x14], edx
lea eax, [edx + edx]
cmp eax, ecx
je 0x487e0e
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040f6d0
and dword [esi], 0
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x487df0
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 4
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x487e05
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x4882fd
lea eax, [esp + 0x78]
mov dword [esp + 0x84], edx
push eax
xor edi, edi
mov dword [esp + 0x40], 0x49c940
and dword [esp + 0x48], edi
lea eax, [esp + 0x6c]
and dword [esp + 0x4c], edi
or esi, 0xffffffff
push eax
mov dword [esp + 0x48], edi
call fcn.00488ac7
test al, al
jne 0x487e85
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040f6d0
and dword [esi], edi
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x487e67
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 2
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x487e7c
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x4882f6
and dword [esp + 0x80], edi
and dword [esp + 0x20], edi
push 3
pop eax
sub eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x84], edi
jle 0x488079
mov edi, dword [esp + 0x14]
shl eax, 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], edi
inc esi
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], esi
call fcn.004641f8
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov esi, dword [esi + eax]
mov ecx, esi
call fcn.00406f1d
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x50], esi
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x64], eax
inc dword [eax]
imul eax, esi, 0x18
mov dword [esp + 0x18], eax
add eax, ecx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00488311
test al, al
je 0x4881f6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xb0]
add edx, eax
mov dword [esp + 0x54], edx
cmp dword [edx], 0x10
jne 0x488043
cmp dword [esp + eax + 0xb4], 0
jne 0x488043
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + eax + 4]
cmp dword [ecx + 0xc], 0xc
jne 0x4881b4
call fcn.00471e9f
mov ecx, dword [esp + 0x18]
dec eax
shr eax, 2
add edi, eax
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x14], edi
imul eax, dword [esp + ecx + 0xb8]
add dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
jle 0x487fe1
imul eax, eax, 0x18
lea edx, [esp + 0xa8]
add eax, edx
mov dword [esp + 0x4c], eax
mov ebx, eax
imul eax, edi, 0x18
add edx, eax
mov eax, dword [esp + 0x30]
sub eax, esi
push 6
mov esi, ebx
mov edi, edx
pop ecx
sub ebx, 0x18
sub edx, 0x18
rep movsd dword es:[edi], dword [esi]
sub eax, 1
jne 0x487fbd
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + ecx + 4]
cmp dword [eax + 0xc], 0xc
jne 0x487ff7
mov eax, dword [eax]
jmp 0x487ff9
xor eax, eax
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 8]
inc ecx
add ecx, esi
mov dword [esp + 0x24], eax
cmp esi, ecx
jge 0x488040
mov edi, dword [esp + 0x18]
sub ecx, esi
mov ebx, eax
mov eax, dword [ebx]
inc esi
and dword [edx + 4], 0
lea ebx, [ebx + 4]
mov dword [edx - 8], eax
mov dword [edx], 0x10
lea edx, [edx + 0x18]
mov eax, dword [esp + edi + 0xb8]
mov dword [edx - 0x10], eax
sub ecx, 1
jne 0x488013
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
dec esi
jmp 0x488051
mov eax, dword [esp + eax + 0xb8]
add dword [esp + 0x80], eax
add dword [esp + 0x1c], 8
lea ecx, [esp + 0x58]
call fcn.004092c6
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x84]
jl 0x487eb7
mov edi, dword [esp + 0x40]
cmp byte [ebp + 0x10], 0
je 0x488243
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
call fcn.00471e55
mov dword [esp + 0x78], eax
sub esp, 0x10
lea eax, [esp + 0x4c]
mov ecx, esp
push eax
call fcn.00487c7a
push 4
pop eax
sub eax, dword [esp + 0x20]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x90]
push eax
call fcn.00488e8a
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
push eax
call fcn.0041fd80
test eax, eax
jne 0x4880f6
push 0xffffffffffffffff
push 0x67
mov ecx, ebx
call fcn.00473535
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x84], esi
call fcn.00405037
mov ecx, dword [esp + 0x84]
xor ebx, ebx
inc ecx
mov esi, eax
push ecx
inc ebx
mov dword [esp + 0x2c], esi
push ebx
push esi
call fcn.004050b0
add esp, 0xc
cmp dword [esp + 0x88], ebx
jne 0x488146
push 0
push ebx
push 2
push esi
call fcn.0040e630
add esp, 0x10
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0048896f
xor esi, esi
cmp dword [esp + 0x84], esi
jle 0x4882b9
mov eax, dword [esp + 0x2c]
shl eax, 2
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push 2
push dword [esp + 0x34]
mov dword [esp + 0x3c], eax
call fcn.0040e630
mov ecx, dword [edi + esi*4]
add esp, 0x10
mov dword [esp + 0x20], eax
imul ecx, dword [ecx], 0x18
cmp dword [esp + ecx + 0xb0], 0x10
jne 0x488293
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
mov ecx, dword [edx + ecx + 4]
cmp dword [ecx + 0xc], 0xc
jne 0x488274
push ecx
mov ecx, eax
call fcn.0040a64f
jmp 0x4882a3
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040f6d0
and dword [esi], 0
mov dword [esi + 0xc], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x4881db
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 5
cmp byte [eax + ebx + 0xd], 0
mov ecx, dword [eax + ebx + 8]
je 0x4881f0
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x488231
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040f6d0
and dword [esi], 0
xor ecx, ecx
inc ecx
mov dword [esi + 0xc], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
cmp byte [edx + ebx + 0xd], 0
mov eax, dword [edx + ebx + 8]
je 0x48821c
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], ecx
cmp byte [edx + ebx + 0xd], 0
mov eax, dword [edx + ebx + 8]
je 0x48822d
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
lea ecx, [esp + 0x58]
call fcn.004092c6
mov edi, dword [esp + 0x40]
jmp 0x4882d7
push dword [ebp + 8]
lea eax, [esp + 0x7c]
mov ecx, ebx
push eax
call fcn.00488cd8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x488095
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040f6d0
and dword [esi], 0
mov dword [esi + 0xc], 1
jmp 0x4882d7
call fcn.00471e55
mov ecx, dword [esp + 0x20]
mov esi, eax
call fcn.0040f6d0
mov eax, dword [esp + 0x20]
mov dword [eax + 0xc], 7
mov dword [eax], esi
jmp 0x4882a3
push eax
lea eax, [esp + 0xac]
add eax, ecx
push eax
call fcn.0048896f
add dword [esp + 0x10], 8
mov esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x84]
jl 0x488160
cmp byte [ebp + 0x10], 0
jne 0x4882d7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp dword [eax + 0xc], 4
jne 0x4882d7
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ebx, dword [esp + 0x44]
xor esi, esi
test ebx, ebx
je 0x4882f6
push 4
push dword [edi + esi*4]
call fcn.0041fedd
and dword [edi + esi*4], 0
inc esi
pop ecx
pop ecx
cmp esi, ebx
jb 0x4882e1
push edi
call fcn.0041ff24
pop ecx
lea ecx, [esp + 0x68]
call fcn.004092c6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc