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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
xor eax, eax
cmp byte [ebp + 0x14], al
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
setne al
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], 0
movsx esi, ax
lea eax, [esi*4]
sub ecx, eax
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x68], esi
call fcn.00457f69
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], ecx
lea ecx, [eax + esi - 3]
mov dword [esp + 0x44], edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov dword [esp + 0x74], ecx
cmp edx, ecx
je 0x47a39c
mov esi, edi
call fcn.00409370
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.004040c0
lea ecx, [esp + 0x3c]
call fcn.004023b0
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], 0x49d298
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
or ebx, 0xffffffff
call fcn.0045e295
test al, al
jne 0x47a3fc
mov esi, edi
call fcn.00409370
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.004040c0
jmp 0x47a7f6
xor ecx, ecx
mov eax, 3
sub eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x74], ecx
jle 0x47a5d2
lea ecx, [eax*4]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
inc ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.0043a14e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx]
push eax
call fcn.00457f69
mov ecx, dword [eax]
mov ebx, dword [esp + 0x14]
mov edx, dword [eax + 4]
lea esi, [ebx + ebx*2]
add esi, esi
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
add esi, esi
mov dword [esp + 0x58], edx
add esi, esi
lea edx, [esp + esi + 0x98]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x64], ecx
call fcn.0045d68a
test al, al
je 0x47a6fd
cmp dword [esp + esi + 0xa0], 0x10
lea eax, [esp + esi + 0xa0]
mov dword [esp + 0x4c], eax
jne 0x47a5a2
cmp dword [esp + esi + 0xa4], 0
jne 0x47a5a2
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.004461f0
test al, al
je 0x47a732
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push eax
call fcn.0044749f
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
shr ecx, 2
lea esi, [esp + esi + 0xa8]
lea edx, [ecx + 1]
imul edx, dword [esi]
add dword [esp + 0x70], edx
add eax, ecx
mov dword [esp + 0x10], eax
sub eax, ecx
mov dword [esp + 0x50], esi
cmp eax, ebx
jle 0x47a55c
lea esi, [eax + ecx]
lea edx, [eax + eax*2]
lea esi, [esi + esi*2]
sub eax, ebx
lea edx, [esp + edx*8 + 0x98]
lea esi, [esp + esi*8 + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x14], eax
sub edx, 0x18
sub esi, 0x18
dec dword [esp + 0x14]
jne 0x47a52e
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.004363ea
mov eax, dword [eax + 8]
lea ecx, [ecx + ebx + 1]
cmp ebx, ecx
jge 0x47a59f
mov edx, dword [esp + 0x4c]
sub ecx, ebx
add ebx, ecx
mov esi, dword [eax]
mov dword [edx - 8], esi
mov esi, dword [esp + 0x50]
mov dword [edx], 0x10
mov dword [edx + 4], 0
mov esi, dword [esi]
mov dword [edx + 8], esi
add eax, 4
add edx, 0x18
dec ecx
jne 0x47a57b
dec ebx
jmp 0x47a5ad
mov ecx, dword [esp + esi + 0xa8]
add dword [esp + 0x70], ecx
add dword [esp + 0x18], 8
lea ecx, [esp + 0x54]
call fcn.004023b0
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x74]
jl 0x47a426
mov esi, dword [esp + 0x64]
cmp byte [ebp + 0x14], 0
je 0x47a767
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call fcn.0044f77e
mov dword [esp + 0x68], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.00434fb7
mov eax, dword [ebp + 0xc]
mov edx, 4
sub edx, esi
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0045e3c7
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x78], edx
call fcn.00410efc
test eax, eax
jne 0x47a64e
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x67
push ecx
call fcn.00465df6
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.0040eb60
add esp, 8
cmp dword [esp + 0x78], 1
jne 0x47a683
push 0
push 1
push 0
call fcn.0040d2e0
add esp, 0xc
push eax
lea edx, [esp + 0x84]
push edx
call fcn.00472975
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x47a7d3
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
lea eax, [ebx + 1]
push eax
push 1
push 0
mov dword [esp + 0x28], eax
call fcn.0040d2e0
mov edx, dword [esp + 0x38]
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, 0xc
cmp dword [esp + eax + 0xa0], 0x10
jne 0x47a7b2
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.004461f0
push ebx
test al, al
je 0x47a79b
mov ebx, esi
call fcn.004092b0
jmp 0x47a7c0
mov esi, edi
call fcn.00409370
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.004040c0
lea ecx, [esp + 0x54]
call fcn.004023b0
jmp 0x47a7f6
mov esi, edi
call fcn.00409370
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.004040c0
lea ecx, [esp + 0x54]
call fcn.004023b0
jmp 0x47a7f6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.0046b7e7
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47a5ef
mov esi, edi
call fcn.00409370
mov dword [edi + 8], 1
mov dword [edi], 0
jmp 0x47a7f6
call fcn.0044f77e
mov ebx, eax
call fcn.00409370
mov dword [esi + 8], 7
mov dword [esi], ebx
jmp 0x47a7c0
push esi
lea ecx, [esp + eax + 0x9c]
push ecx
call fcn.00472975
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x10], 8
cmp ebx, dword [esp + 0x74]
jl 0x47a69e
cmp byte [ebp + 0x14], 0
jne 0x47a7f6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call fcn.00447b95
test al, al
je 0x47a7f6
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 0x28]
call fcn.00446089
lea ecx, [esp + 0x3c]
call fcn.004023b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10