Function at 0x49cf40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d968
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x15c], ebx
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
push dword [esi + 4]
push ebx
call fcn.00497640
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
lea esi, [ebx + 0x14]
mov dword [ebx + 4], 0
mov eax, esi
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x49cfa7
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x164], ecx
test edi, edi
jne 0x49cfbe
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea eax, [ebp - 0x164]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov bl, byte [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x160], edi
test bl, bl
je 0x49d000
mov ecx, dword [edi]
mov edx, ecx
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x49cfe2
sub edx, edi
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.0042daa0
mov edi, dword [ebp - 0x160]
movzx eax, bl
mov dword [ebp - 0x16c], eax
cmp eax, dword [ebp - 0x164]
jge 0x49d388
mov ebx, 0x100
lea ebx, [ebx]
mov edx, dword [edi + eax*4]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x49d034
cmp eax, 0x2d
je 0x49d034
xor al, al
jmp 0x49d036
mov al, 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
test al, al
je 0x49d3af
add edx, 2
xor eax, eax
mov ecx, edx
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d060
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0042daa0
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x168], esi
test esi, esi
je 0x49d0fc
push 0x100
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.0054b380
add esp, 0xc
mov ecx, 0x5be718
movzx eax, word [ecx]
cmp ax, bx
jae 0x49d173
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x158], 1
cmp ecx, 0x5be71c
jne 0x49d0b3
lea ecx, [edi + esi*2]
mov ebx, edi
cmp edi, ecx
jae 0x49d0fc
mov edx, 0x100
movzx eax, word [ebx]
cmp ax, dx
jae 0x49d0f5
cmp byte [ebp + eax - 0x158], 0
jne 0x49d16d
add ebx, 2
cmp ebx, ecx
jb 0x49d0e3
or ebx, 0xffffffff
xor eax, eax
cmp ebx, 0xffffffff
je 0x49d2bc
lea edx, [ebx + 1]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp esi, edx
jb 0x49d47f
sub esi, edx
lea eax, [ebp - 0x28]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x168], ecx
cmovae eax, dword [ebp - 0x28]
lea eax, [eax + edx*2]
mov dword [ebp - 0x170], eax
cmp ecx, 7
ja 0x49d1c1
lea esi, [ecx + ecx]
mov dword [ebp - 0x30], ecx
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0054a880
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
jmp 0x49d222
sub ebx, edi
sar ebx, 1
jmp 0x49d0ff
lea esi, [edi + esi*2]
mov ebx, edi
cmp edi, esi
jae 0x49d1a4
lea esp, [esp]
movzx edx, word [ebx]
mov ecx, 2
mov eax, 0x5be718
lea ecx, [ecx]
cmp word [eax], dx
je 0x49d1b2
add eax, 2
sub ecx, 1
jne 0x49d190
add ebx, 2
cmp ebx, esi
jb 0x49d180
mov esi, dword [ebp - 0x168]
or ebx, 0xffffffff
jmp 0x49d0ff
mov esi, dword [ebp - 0x168]
sub ebx, edi
sar ebx, 1
jmp 0x49d0ff
cmp ecx, 0x7ffffffe
ja 0x49d47a
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x49d1e1
mov esi, 0x7ffffffe
jmp 0x49d1ec
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.0042da40
mov edi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x30], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x170]
push edi
call fcn.0054ae00
add esp, 0xc
mov dword [ebp - 0x40], edi
xor eax, eax
mov word [esi + edi], ax
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
cmovb ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.0042daa0
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.0049cae0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x49d2ab
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49d2a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d475
push edx
push ecx
call fcn.00546044
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x49d323
mov ecx, dword [ebp - 0x40]
jmp 0x49d2f4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0049cae0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x49d323
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49d319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d475
push edx
push ecx
call fcn.00546044
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49d364
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49d35a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d475
push edx
push ecx
call fcn.00546044
add esp, 8
mov edi, dword [ebp - 0x160]
mov ebx, 0x100
mov eax, dword [ebp - 0x16c]
inc eax
mov dword [ebp - 0x16c], eax
cmp eax, dword [ebp - 0x164]
jl 0x49d020
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret 8
mov ecx, edx
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d3c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0042daa0
mov esi, dword [ebp - 0x15c]
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 0x10]
je 0x49d422
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [esi + 0xc], 0x18
mov word [ebp - 0x28], ax
jmp 0x49d432
lea eax, [ebp - 0x28]
push eax
push ecx
lea ecx, [esi + 8]
call fcn.0043dfb0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49d36f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49d466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d475
push edx
push ecx
call fcn.00546044
add esp, 8
jmp 0x49d36f
call fcn.00555394
call fcn.0042d9d0
call fcn.0043e8e0
int3