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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x384
xor eax, eax
cmp byte [ebp + 0x14], al
push ebx
setne al
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], 0
movsx ebx, ax
lea eax, [ebx*4]
sub ecx, eax
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x60], ebx
call fcn.00457d15
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 [esi + 8]
mov dword [esp + 0x40], ecx
lea ecx, [eax + ebx - 3]
mov dword [esp + 0x44], edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov dword [esp + 0x6c], ecx
cmp edx, ecx
je 0x47a0d7
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 + 0x60]
xor esi, esi
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 0x49d2a8
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045e041
test al, al
jne 0x47a13c
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 0x47a527
mov eax, 3
sub eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], esi
cmp dword [esp + 0x6c], esi
jle 0x47a309
lea ecx, [eax*4]
mov dword [esp + 0x18], ecx
lea ebx, [esp + 0x98]
inc dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0043a0f5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx]
push eax
call fcn.00457d15
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc dword [eax]
mov dword [esp + 0x50], edx
lea edx, [ebx - 8]
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x5c], ecx
call fcn.0045d436
test al, al
je 0x47a42e
cmp dword [ebx], 0x10
jne 0x47a2e2
cmp dword [ebx + 4], 0
jne 0x47a2e2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
lea eax, [eax + edx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
push eax
call fcn.004461a0
test al, al
je 0x47a463
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
push eax
call fcn.0044740a
lea ecx, [eax - 1]
shr ecx, 2
add dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
lea edx, [ecx + 1]
imul edx, dword [ebx + 8]
add dword [esp + 0x68], edx
sub eax, ecx
cmp eax, esi
jle 0x47a289
lea edx, [eax + eax*2]
lea edx, [esp + edx*8 + 0x90]
mov dword [esp + 0xc], edx
lea edx, [eax + ecx]
lea edx, [edx + edx*2]
sub eax, esi
lea edx, [esp + edx*8 + 0x90]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
sub dword [esp + 0xc], 0x18
mov dword [edx + 0x14], eax
sub edx, 0x18
dec dword [esp + 0x34]
jne 0x47a241
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
push eax
call fcn.004364a5
mov eax, dword [eax + 8]
lea edx, [ecx + esi + 1]
cmp esi, edx
jge 0x47a2dc
sub edx, esi
add dword [esp + 0x14], edx
mov ecx, ebx
mov dword [esp + 0xc], eax
jmp 0x47a2b5
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
add dword [esp + 0xc], 4
mov dword [ecx - 8], eax
mov dword [ecx], 0x10
mov dword [ecx + 4], 0
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
add ecx, 0x18
dec edx
jne 0x47a2b5
dec dword [esp + 0x14]
jmp 0x47a2e9
mov ecx, dword [ebx + 8]
add dword [esp + 0x68], ecx
add dword [esp + 0x18], 8
lea ecx, [esp + 0x4c]
call fcn.004023b0
inc esi
add ebx, 0x18
cmp esi, dword [esp + 0x6c]
jl 0x47a167
mov ebx, dword [esp + 0x5c]
cmp byte [ebp + 0x14], 0
je 0x47a498
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call fcn.0044f699
mov dword [esp + 0x60], eax
sub esp, 0x10
mov eax, esp
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00435088
mov eax, dword [ebp + 0xc]
mov edx, 4
sub edx, ebx
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.0045e173
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x70], edx
call fcn.00410f3c
test eax, eax
jne 0x47a382
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x67
push ecx
call fcn.00465ba2
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x6c], esi
inc esi
push esi
push 1
mov eax, edi
call fcn.0040ebc0
add esp, 8
cmp dword [esp + 0x70], 1
jne 0x47a3b4
push 0
push 1
push 0
call fcn.0040d320
add esp, 0xc
push eax
lea edx, [esp + 0x7c]
push edx
call fcn.004724a4
xor ebx, ebx
cmp dword [esp + 0x6c], ebx
jle 0x47a504
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.0040d320
mov edx, dword [esp + 0x34]
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 + 0x98], 0x10
jne 0x47a4e3
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.004461a0
push ebx
test al, al
je 0x47a4cc
mov ebx, esi
call fcn.004092b0
jmp 0x47a4f1
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 + 0x4c]
call fcn.004023b0
jmp 0x47a527
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 + 0x4c]
call fcn.004023b0
jmp 0x47a527
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.0046b593
mov dword [esp + 0x20], eax
test eax, eax
jne 0x47a326
mov esi, edi
call fcn.00409370
mov dword [edi + 8], 1
mov dword [edi], 0
jmp 0x47a527
call fcn.0044f699
mov ebx, eax
call fcn.00409370
mov dword [esi + 8], 7
mov dword [esi], ebx
jmp 0x47a4f1
push esi
lea ecx, [esp + eax + 0x94]
push ecx
call fcn.004724a4
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x10], 8
cmp ebx, dword [esp + 0x6c]
jl 0x47a3cf
cmp byte [ebp + 0x14], 0
jne 0x47a527
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
call fcn.00447b37
test al, al
je 0x47a527
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x24]
call fcn.00446039
lea ecx, [esp + 0x3c]
call fcn.004023b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10