Function at 0x527634
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x52763d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0x1d], cl
mov ebx, edx
mov esi, eax
mov eax, dword [ebp + 0xc]
call fcn.00405eb0
xor eax, eax
push ebp
push 0x52798b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00405f1c
mov eax, ebx
mov edx, 0x5279a0
mov cl, 0x20
call fcn.00403850
je 0x5276ce
cmp dword [ebp - 0xc], 0
je 0x5276ce
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5276a4
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5276a4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0040563c
movzx esi, word [eax]
cmp si, 0x100
jae 0x5276ce
mov eax, esi
movzx eax, al
bt dword [ebx], eax
jae 0x5276ce
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x7fffffff
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.00406674
cmp dword [ebp + 0xc], 0
jne 0x5276e3
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp + 0xc]
call fcn.00406074
mov eax, dword [ebp + 0xc]
call fcn.00527598
mov esi, eax
test esi, esi
jl 0x527965
inc esi
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
call fcn.005275fc
mov eax, ebx
mov edx, 0x5279a0
mov cl, 0x20
call fcn.00403850
jne 0x52771f
mov al, 1
jmp 0x527756
mov eax, dword [ebp - 4]
test eax, eax
je 0x52773c
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52773c
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040563c
movzx edi, word [eax]
cmp di, 0x100
jae 0x527750
mov eax, edi
movzx eax, al
bt dword [ebx], eax
jb 0x527754
xor eax, eax
jmp 0x527756
mov al, 1
test al, al
je 0x52795b
mov eax, ebx
mov edx, 0x5279a0
mov cl, 0x20
call fcn.00403850
je 0x5277b1
mov eax, dword [ebp - 4]
test eax, eax
je 0x52778b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52778b
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040563c
movzx edi, word [eax]
cmp di, 0x100
jae 0x5277b1
mov eax, edi
movzx eax, al
bt dword [ebx], eax
jae 0x5277b1
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00406744
cmp byte [ebp + 8], 0
je 0x5277f8
mov edx, dword [ebp - 4]
mov eax, 0x5279cc
call fcn.0040698c
mov edi, eax
test edi, edi
jle 0x5277e0
lea eax, [ebp - 8]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406674
jmp 0x52780e
lea eax, [ebp - 8]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406674
jmp 0x52780e
lea eax, [ebp - 8]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406674
cmp byte [ebp - 0x1d], 0
je 0x5278bd
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00405f1c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405f1c
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x52784b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52784b
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0040563c
mov edi, eax
test edi, edi
je 0x527856
sub edi, 4
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x527873
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x527873
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.0040563c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x527887
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405f54
push eax
push edi
mov eax, dword [ebp - 0x10]
call fcn.00405f54
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
jne 0x52795b
mov ebx, dword [ebp - 0x24]
jmp 0x527968
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00405f1c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405f1c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5278f0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5278f0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.0040563c
mov edi, eax
test edi, edi
je 0x5278fb
sub edi, 4
mov edi, dword [edi]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x527918
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x527918
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
call fcn.0040563c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x52792c
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405f54
push eax
push edi
mov eax, dword [ebp - 0x18]
call fcn.00405f54
push eax
push 0
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
jne 0x52795b
mov ebx, dword [ebp - 0x24]
jmp 0x527968
inc dword [ebp - 0x24]
dec esi
jne 0x5276fd
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527992
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00405ec0
lea eax, [ebp + 0xc]
call fcn.00405eb8
ret