Function at 0x477f99
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4d4770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov dword [ebp - 0x90], eax
mov edi, ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x84], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x94], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, edx
call fcn.00477e28
test eax, eax
jne 0x4782c3
mov ax, si
cmp ax, 0x1a
jne 0x47801e
mov ecx, dword [ebp - 0x8c]
movzx ecx, word [ecx + 4]
cmp ecx, 0x10
je 0x478008
cmp ecx, 0xc
jne 0x47801e
push 0x1e
pop eax
mov word [ebp - 0x94], ax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x84], ecx
movzx eax, ax
add eax, 0xfffffffe
cmp eax, 0x1d
ja case.0x478034.12
movzx eax, byte [eax + 0x4782f5]
jmp dword [eax*4 + 0x4782d5]
mov eax, dword [0x4d6258]
test byte [eax + 0x26], 0x10
je case.0x478034.4
push 2
pop eax
mov word [ebx], ax
mov eax, dword [edi]
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
mov word [ebx + 8], ax
jmp 0x4782c3
mov eax, dword [0x4d6258]
test byte [eax + 0x26], 0x10
je case.0x478034.4
push 3
pop eax
mov word [ebx], ax
mov eax, dword [edi]
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
mov dword [ebx + 8], eax
jmp 0x4782c3
push 3
pop eax
mov word [ebx], ax
mov eax, dword [edi]
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
or eax, edx
je 0x4780d2
push dword [ebp - 0x90]
push 0x87f
xor edx, edx
xor ecx, ecx
call fcn.004cb5e7
push 0x7e4
call dword [sym.imp.msvcrt.dll_exit]
and dword [ebx + 8], 0
jmp 0x4782c3
and dword [ebx + 8], 0
push 8
pop eax
mov word [ebx], ax
mov eax, dword [edi]
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
mov dword [ebp - 0x84], eax
mov eax, dword [edi]
mov dword [ebp - 0x8c], edx
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
test eax, eax
je 0x47815c
mov esi, dword [ebp - 0x84]
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x47815c
mov ecx, esi
call fcn.00461d8f
mov ecx, esi
call fcn.004783d9
mov esi, eax
mov ecx, esi
call fcn.00470c7a
mov dword [ebx + 8], eax
test esi, esi
je 0x4782c3
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4782c3
mov eax, dword [edi]
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
or eax, edx
je 0x4782c3
push dword [ebp - 0x8c]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x84]
push 0x42ce7c
push 0x28
push eax
call fcn.00442802
add esp, 0x14
lea ecx, [ebp - 0x2c]
xor eax, eax
lea edx, [ecx + 1]
mov word [ebp - 0x80], ax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4781a0
push 0x28
sub ecx, edx
lea eax, [ebp - 0x80]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x80]
call fcn.00470c7a
jmp 0x478090
mov eax, dword [edi]
mov esi, dword [eax + 0x4c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
mov dword [ebp - 0x88], eax
mov eax, dword [edi]
mov dword [ebp - 0x94], edx
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x4d8248]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x88]
test eax, eax
je 0x47827c
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x47827c
mov eax, dword [0x4d6258]
test byte [eax + 0x26], 8
jne 0x478228
mov ecx, esi
call fcn.00461d8f
mov ecx, esi
call fcn.004783d9
mov esi, eax
mov ecx, esi
call fcn.00470c7a
mov dword [ebp - 0xa0], eax
push 8
pop eax
mov word [ebp - 0xa8], ax
test esi, esi
je 0x478254
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x84]
lea edx, [ebp - 0xa8]
push ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00470d1e
test eax, eax
js 0x4782a7
mov ecx, dword [ebp - 0xa0]
call fcn.00470ccc
jmp 0x4782c3
push 3
pop eax
push dword [ebp - 0x84]
lea edx, [ebp - 0xa8]
mov word [ebp - 0xa8], ax
push ecx
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0xa0], esi
call fcn.00470d1e
test eax, eax
jns 0x4782c3
push dword [ebp - 0x90]
push 0x91f
jmp 0x4780be
push dword [ebp + 8]
mov edx, edi
mov ecx, ebx
call fcn.00477ed3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc790
leave
ret 0x10