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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
xor eax, eax
cmp byte [ebp + 0x14], al
push ebx
setne al
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], 0
movsx ebx, ax
lea eax, [ebx*4]
sub edx, eax
mov esi, dword [edx + 4]
mov dword [esp + 0x64], ebx
call fcn.0040e0c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x44], ecx
lea ecx, [eax + ebx - 3]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov dword [esp + 0x74], ecx
cmp edx, ecx
je 0x47c721
mov esi, edi
call fcn.00406310
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 4
add eax, ecx
call fcn.0040b6b0
lea ecx, [esp + 0x3c]
call fcn.00402610
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x68]
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], eax
xor eax, eax
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x30], 0x4a0318
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
or esi, 0xffffffff
call fcn.0045fd5b
test al, al
jne 0x47c781
mov esi, edi
call fcn.00406310
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 2
add eax, ecx
call fcn.0040b6b0
jmp 0x47cb7c
xor ecx, ecx
mov eax, 3
sub eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x74], ecx
jle 0x47c956
lea ecx, [eax*4]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
inc esi
push eax
mov dword [esp + 0x1c], esi
call fcn.00436b95
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + edx]
call fcn.0040e0c0
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 4]
lea ebx, [esi + esi*2]
add ebx, ebx
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
add ebx, ebx
mov dword [esp + 0x58], edx
add ebx, ebx
lea edx, [esp + ebx + 0x98]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x64], ecx
call fcn.0045f150
test al, al
je 0x47ca83
cmp dword [esp + ebx + 0xa0], 0x10
lea eax, [esp + ebx + 0xa0]
mov dword [esp + 0x4c], eax
jne 0x47c926
cmp dword [esp + ebx + 0xa4], 0
jne 0x47c926
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
lea eax, [edx + eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
push eax
call fcn.00447d40
test al, al
je 0x47cab8
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push eax
call fcn.00448e3a
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
shr ecx, 2
lea ebx, [esp + ebx + 0xa8]
lea edx, [ecx + 1]
imul edx, dword [ebx]
add dword [esp + 0x70], edx
add eax, ecx
mov dword [esp + 0x10], eax
sub eax, ecx
mov dword [esp + 0x50], ebx
cmp eax, esi
jle 0x47c8e0
lea ebx, [eax + ecx]
lea edx, [eax + eax*2]
lea ebx, [ebx + ebx*2]
sub eax, esi
lea edx, [esp + edx*8 + 0x98]
lea ebx, [esp + ebx*8 + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov eax, dword [edx + 8]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ebx + 0x14], eax
sub edx, 0x18
sub ebx, 0x18
dec dword [esp + 0x14]
jne 0x47c8b2
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.00437fce
mov eax, dword [eax + 8]
lea ecx, [ecx + esi + 1]
cmp esi, ecx
jge 0x47c923
mov edx, dword [esp + 0x4c]
sub ecx, esi
add esi, ecx
mov ebx, dword [eax]
mov dword [edx - 8], ebx
mov ebx, dword [esp + 0x50]
mov dword [edx], 0x10
mov dword [edx + 4], 0
mov ebx, dword [ebx]
mov dword [edx + 8], ebx
add eax, 4
add edx, 0x18
dec ecx
jne 0x47c8ff
dec esi
jmp 0x47c931
mov ecx, dword [esp + ebx + 0xa8]
add dword [esp + 0x70], ecx
add dword [esp + 0x18], 8
lea ecx, [esp + 0x54]
call fcn.00402610
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x74]
jl 0x47c7ab
mov ebx, dword [esp + 0x64]
cmp byte [ebp + 0x14], 0
je 0x47caed
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call fcn.0045119c
mov dword [esp + 0x68], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.00436b05
mov eax, dword [ebp + 0xc]
mov edx, 4
sub edx, ebx
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0045fe8d
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x78], edx
call fcn.00411ac4
test eax, eax
jne 0x47c9d2
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x67
push ecx
call fcn.00467c82
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x74], esi
inc esi
push esi
push 1
mov eax, edi
call fcn.0040f1c0
add esp, 8
cmp dword [esp + 0x78], 1
jne 0x47ca08
push 0
push 1
push 0
push edi
call fcn.0040dc30
add esp, 0x10
push eax
lea edx, [esp + 0x84]
push edx
call fcn.00474b24
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x47cb59
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
lea eax, [ebx + 1]
push eax
push 1
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.0040dc30
mov edx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
add esp, 0x10
cmp dword [esp + eax + 0xa0], 0x10
jne 0x47cb38
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x10]
mov ebx, dword [edx + eax + 4]
push ebx
call fcn.00447d40
push ebx
test al, al
je 0x47cb21
mov ebx, esi
call fcn.00406390
jmp 0x47cb46
mov esi, edi
call fcn.00406310
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0
push 1
add eax, ecx
call fcn.0040b6b0
lea ecx, [esp + 0x54]
call fcn.00402610
jmp 0x47cb7c
mov esi, edi
call fcn.00406310
mov ecx, dword [ebp + 8]
mov dword [edi + 8], 1
mov dword [edi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
push 5
add eax, ecx
call fcn.0040b6b0
lea ecx, [esp + 0x54]
call fcn.00402610
jmp 0x47cb7c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.0046d851
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47c973
mov esi, edi
call fcn.00406310
mov dword [edi + 8], 1
mov dword [edi], 0
jmp 0x47cb7c
call fcn.0045119c
mov ebx, eax
call fcn.00406310
mov dword [esi + 8], 7
mov dword [esi], ebx
jmp 0x47cb46
push esi
lea ecx, [esp + eax + 0x9c]
push ecx
call fcn.00474b24
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x10], 8
cmp ebx, dword [esp + 0x74]
jl 0x47ca23
cmp byte [ebp + 0x14], 0
jne 0x47cb7c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call fcn.0044956e
test al, al
je 0x47cb7c
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x28]
call fcn.00447af6
lea ecx, [esp + 0x3c]
call fcn.00402610
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10