Function at 0x477d10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x458
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x482240
mov dword [ebp - 0x64], ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
je 0x47825e
movzx edi, word [eax]
test di, di
je 0x47825e
xor esi, esi
mov ecx, 2
xor ebx, ebx
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
test di, di
jne 0x477db0
jmp 0x477e23
mov word [ecx + esi*2], di
inc esi
mov dword [ebp - 0x48], esi
movzx edi, word [eax]
test di, di
je 0x477e23
add eax, 2
cmp di, 9
je 0x477de0
movzx edx, di
cmp edx, 0x20
je 0x477de0
cmp edx, 0x22
jne 0x477de5
movzx edi, word [eax]
not bl
and bl, 1
test di, di
jne 0x477db0
jmp 0x477e23
test bl, 1
je 0x477e23
cmp esi, dword [ebp - 0x4c]
jne 0x477da0
lea ecx, [ebp - 0x50]
mov edx, esi
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x20], di
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 1
call fcn.00473b40
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
movzx edi, word [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
jmp 0x477da0
add eax, 2
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x477e20
cmp ecx, 9
je 0x477e20
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x58], edx
push esi
call fcn.00474900
add esp, 4
lea ecx, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x10], 5
call fcn.004786e0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x464]
movsd xmm1, qword [ebp - 0x45c]
mov esi, dword [ebp - 0x24]
xor ebx, ebx
xor edi, edi
mov edx, ecx
inc ecx
shl edx, 4
movsd qword [eax + edx], xmm0
movaps xmm0, xmmword [0x494390]
movsd qword [eax + edx + 8], xmm1
mov dword [ebp - 0x3c], ecx
mov ecx, 2
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movzx edx, word [esi]
mov dword [ebp - 0x20], ecx
lea ecx, [esi + 2]
add esi, 4
mov eax, esi
mov esi, ecx
mov ecx, dword [ebp - 0x20]
test dx, dx
je 0x4784b9
cmp dx, 0x22
jne 0x477f00
test bl, bl
je 0x478050
movzx edx, word [esi]
test edx, edx
je 0x4784c9
add esi, 2
add eax, 2
xor ebx, ebx
cmp edx, 0x22
jne 0x477ec5
jmp 0x478099
movzx ecx, dx
cmp ecx, 9
je 0x477f11
cmp ecx, 0x20
jne 0x477fc0
test bl, bl
jne 0x478057
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x20], edx
push edi
call fcn.00474900
add esp, 4
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x40]
jne 0x477f55
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], 3
call fcn.004786e0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x464]
mov ecx, edx
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x45c]
inc edx
shl ecx, 4
movsd qword [eax + ecx], xmm0
movaps xmm0, xmmword [0x494390]
movsd qword [eax + ecx + 8], xmm1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], 0
jmp 0x477fa3
add esi, 2
movzx edx, word [esi]
cmp edx, 0x20
je 0x477fa0
cmp edx, 9
je 0x477fa0
xor edi, edi
jmp 0x477eb8
cmp ecx, 0x5c
jne 0x478057
movzx ecx, word [esi]
xor edx, edx
cmp cx, 0x5c
jne 0x477ff2
xor edx, edx
nop word cs:[eax + eax]
movzx ecx, word [eax]
inc edx
add eax, 2
cmp cx, 0x5c
je 0x477fe0
add eax, 0xfffffffe
mov esi, eax
inc edx
cmp cx, 0x22
mov dword [ebp - 0x54], edx
jne 0x4780de
mov eax, dword [ebp - 0x34]
mov ecx, edx
shr ecx, 1
sub eax, edi
cmp eax, ecx
mov eax, ecx
mov ecx, dword [ebp - 0x20]
jae 0x47811f
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x60], eax
push eax
call fcn.00492d40
add esp, 4
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
movaps xmm0, xmmword [0x494390]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
jmp 0x478128
mov bl, 1
jmp 0x477eb2
cmp edi, dword [ebp - 0x34]
jne 0x478089
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
call fcn.00473b40
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
movaps xmm0, xmmword [0x494390]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov word [ecx + edi*2], dx
inc edi
mov dword [ebp - 0x30], edi
jmp 0x477eb2
cmp edi, dword [ebp - 0x34]
jne 0x4780bf
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
call fcn.00473b40
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
movaps xmm0, xmmword [0x494390]
mov ecx, dword [ebp - 0x38]
lea eax, [esi - 2]
mov bl, 1
mov word [ecx + edi*2], 0x22
inc edi
mov dword [ebp - 0x30], edi
cmp word [esi - 2], 0
cmove esi, eax
jmp 0x477eb2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
sub eax, edi
cmp eax, edx
jae 0x478139
mov eax, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x38]
mov edx, edi
push eax
call fcn.00492d40
add esp, 4
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
movaps xmm0, xmmword [0x494390]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x54]
jmp 0x478141
cmp edx, 2
jb 0x478201
mov ecx, edi
mov edi, dword [ebp - 0x38]
cmp edx, 0x20
jae 0x478181
mov edx, edi
jmp 0x4781ec
test edx, edx
je 0x4781da
cmp edx, 0x10
jb 0x4781d0
mov eax, edx
mov dword [ebp - 0x20], ecx
lea ecx, [ecx + edi*2 + 0x10]
and eax, 0xfffffff0
add edi, eax
mov edx, eax
nop word [eax + eax]
movups xmmword [ecx - 0x10], xmm0
movups xmmword [ecx], xmm0
add ecx, 0x20
add edx, 0xfffffff0
jne 0x478160
mov edx, dword [ebp - 0x54]
cmp edx, eax
jne 0x4781bb
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
jmp 0x477eb2
mov edx, ecx
mov dword [ebp - 0x60], eax
and eax, 0xfffffff0
mov dword [ebp - 0x20], edi
lea ecx, [edi + ecx*2 + 0x10]
mov edi, edx
mov edx, eax
add edi, eax
nop word cs:[eax + eax]
movups xmmword [ecx - 0x10], xmm0
movups xmmword [ecx], xmm0
add ecx, 0x20
add edx, 0xfffffff0
jne 0x4781a0
mov ecx, dword [ebp - 0x60]
cmp ecx, eax
jne 0x4781e2
mov ecx, dword [ebp - 0x20]
jmp 0x4781fe
mov ecx, dword [ebp - 0x20]
and edx, 0xf
nop word cs:[eax + eax]
nop dword [eax + eax]
mov word [ecx + edi*2], 0x5c
inc edi
dec edx
jne 0x4781d0
mov dword [ebp - 0x30], edi
jmp 0x477eb2
mov edx, dword [ebp - 0x20]
mov eax, ecx
mov ecx, edi
and eax, 0xf
mov edi, ecx
nop
mov ecx, eax
mov word [edx + edi*2], 0x5c
inc edi
dec eax
jne 0x4781f0
mov ecx, edx
mov edx, dword [ebp - 0x54]
test dl, 1
mov dword [ebp - 0x30], edi
je 0x477eb2
xor eax, eax
cmp word [esi], 0
setne cl
cmp edi, dword [ebp - 0x34]
jne 0x47824b
mov byte [ebp - 0x20], cl
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 2
call fcn.00473b40
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
movaps xmm0, xmmword [0x494390]
mov ebx, dword [ebp - 0x28]
movzx ecx, byte [ebp - 0x20]
xor eax, eax
mov al, cl
mov ecx, dword [ebp - 0x38]
lea esi, [esi + eax*2]
mov word [ecx + edi*2], 0x22
jmp 0x478090
mov esi, 0x200
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x20], 0
cmp esi, 0x201
jae 0x4782c0
jmp 0x4782ae
jbe 0x478353
cmp esi, 0x201
jae 0x4782c0
lea edi, [ebp - 0x464]
mov dword [ebp - 0x28], 0x200
mov ebx, esi
jmp 0x4782fb
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub esi, ebx
sub eax, ebx
cmp eax, esi
jae 0x4782ec
mov dword [ebp - 0x10], 8
lea ecx, [ebp - 0x50]
mov edx, ebx
push esi
call fcn.00492d40
add esp, 4
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
mov esi, eax
test eax, eax
jne 0x47831f
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x47849a
cmp esi, ebx
jne 0x4782a0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x478573
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4782ae
jmp 0x4782c0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 8
cmp esi, edx
ja 0x478593
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.00474900
add esp, 4
mov esi, dword [ebp - 0x38]
movzx ecx, word [ebp - 0x2b]
mov edx, dword [ebp - 0x30]
movzx eax, byte [ebp - 0x29]
mov edi, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2c]
mov dword [ebp - 0x20], esi
shrd esi, edi, 8
mov word [ebp - 0x5c], cx
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x5a], al
cmp dword [ebp - 0x24], 0
je 0x4783ac
mov ecx, dword [ebp - 0x58]
mov edx, 2
call fcn.00412b00
cmp bl, 2
jne 0x47841a
cmp byte [ebp - 0x20], 3
mov dword [ebp - 0x464], 1
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov byte [ebp - 0x458], 1
jne 0x47845a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x28], ecx
push ecx
mov dword [ebp - 0x20], eax
call dword [eax]
add esp, 4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x47840b
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x28]
call fcn.00412b00
mov ecx, dword [ebp - 0x24]
mov edx, 4
call fcn.00412b00
jmp 0x47845a
movzx eax, word [ebp - 0x5c]
movzx ecx, byte [ebp - 0x20]
movzx edx, byte [ebp - 0x5a]
shl esi, 8
mov dword [ebp - 0x10], 6
mov word [ebp - 0x457], ax
mov eax, dword [ebp - 0x28]
or esi, ecx
mov byte [ebp - 0x455], dl
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x45c], eax
mov byte [ebp - 0x458], bl
lea ecx, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x10], 6
call fcn.004786e0
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x464]
movsd xmm1, qword [ebp - 0x45c]
mov eax, esi
inc esi
shl eax, 4
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov ebx, dword [ebp - 0x40]
jmp 0x47854b
mov bl, 2
mov dword [ebp - 0x20], 0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp dword [ebp - 0x24], 0
jne 0x47839f
jmp 0x4783ac
test edi, edi
jne 0x4784c9
test bl, bl
jne 0x4784c9
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
jmp 0x478522
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x464]
push edi
call fcn.00474900
add esp, 4
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x40]
jne 0x4784fe
lea ecx, [ebp - 0x44]
mov edx, esi
mov dword [ebp - 0x10], 4
call fcn.004786e0
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x464]
movsd xmm1, qword [ebp - 0x45c]
mov eax, esi
inc esi
shl eax, 4
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x34], 0
je 0x478538
mov ecx, dword [ebp - 0x38]
mov edx, 2
call fcn.00412b00
cmp dword [ebp - 0x4c], 0
je 0x47854b
mov ecx, dword [ebp - 0x58]
mov edx, 2
call fcn.00412b00
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x18]
shl esi, 4
add esi, edi
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dword fs:[0], ecx
add esp, 0x458
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 8
mov ecx, str.internal_error:_entered_unreachable_code
mov edx, 0x28
push 0x4ea1a0
call fcn.00491430
add esp, 4
jmp 0x4785a2
mov ecx, esi
push 0x4ea1b0
call fcn.004913c0
add esp, 4
ud2