Function at 0x47a294
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.00457ed0
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 0x47a346
mov esi, edi
call fcn.00409310
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.00404040
lea ecx, [esp + 0x3c]
call fcn.00402340
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], 0x49c41c
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
or ebx, 0xffffffff
call fcn.0045e1fd
test al, al
jne 0x47a3a6
mov esi, edi
call fcn.00409310
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.00404040
jmp 0x47a7a0
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 0x47a57c
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.0043524c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx]
push eax
call fcn.00457ed0
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.0045d5f2
test al, al
je 0x47a6a7
cmp dword [esp + esi + 0xa0], 0x10
lea eax, [esp + esi + 0xa0]
mov dword [esp + 0x4c], eax
jne 0x47a54c
cmp dword [esp + esi + 0xa4], 0
jne 0x47a54c
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.00446247
test al, al
je 0x47a6dc
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
push eax
call fcn.0044750c
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 0x47a506
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 0x47a4d8
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.004366f3
mov eax, dword [eax + 8]
lea ecx, [ecx + ebx + 1]
cmp ebx, ecx
jge 0x47a549
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 0x47a525
dec ebx
jmp 0x47a557
mov ecx, dword [esp + esi + 0xa8]
add dword [esp + 0x70], ecx
add dword [esp + 0x18], 8
lea ecx, [esp + 0x54]
call fcn.00402340
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x74]
jl 0x47a3d0
mov esi, dword [esp + 0x64]
cmp byte [ebp + 0x14], 0
je 0x47a711
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call fcn.0044f8d1
mov dword [esp + 0x68], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004351bc
mov eax, dword [ebp + 0xc]
mov edx, 4
sub edx, esi
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0045e32f
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x78], edx
call fcn.00410e0c
test eax, eax
jne 0x47a5f8
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x67
push ecx
call fcn.00465cea
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.0040e8a0
add esp, 8
cmp dword [esp + 0x78], 1
jne 0x47a62d
push 0
push 1
push 0
call fcn.0040d280
add esp, 0xc
push eax
lea edx, [esp + 0x84]
push edx
call fcn.00471aca
xor ebx, ebx
cmp dword [esp + 0x74], ebx
jle 0x47a77d
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.0040d280
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 0x47a75c
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.00446247
push ebx
test al, al
je 0x47a745
mov ebx, esi
call fcn.00409250
jmp 0x47a76a
mov esi, edi
call fcn.00409310
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.00404040
lea ecx, [esp + 0x54]
call fcn.00402340
jmp 0x47a7a0
mov esi, edi
call fcn.00409310
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.00404040
lea ecx, [esp + 0x54]
call fcn.00402340
jmp 0x47a7a0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.0046b417
mov dword [esp + 0x38], eax
test eax, eax
jne 0x47a599
mov esi, edi
call fcn.00409310
mov dword [edi + 8], 1
mov dword [edi], 0
jmp 0x47a7a0
call fcn.0044f8d1
mov ebx, eax
call fcn.00409310
mov dword [esi + 8], 7
mov dword [esi], ebx
jmp 0x47a76a
push esi
lea ecx, [esp + eax + 0x9c]
push ecx
call fcn.00471aca
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x10], 8
cmp ebx, dword [esp + 0x74]
jl 0x47a648
cmp byte [ebp + 0x14], 0
jne 0x47a7a0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call fcn.00447c02
test al, al
je 0x47a7a0
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x28]
call fcn.00435378
lea ecx, [esp + 0x3c]
call fcn.00402340
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10