Function at 0x10001630
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1b8
mov ebx, dword [ebp + 0x10]
test byte [0x10004038], 8
jne 0x10001c90
lea edx, [ebp - 0x190]
xor eax, eax
mov ecx, 0x16
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x194], eax
test ebx, ebx
je 0x10001679
cmp word [ebx], 0
jne 0x100016d0
movzx eax, byte [0x10004038]
test al, 1
jne 0x100016a0
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0xc], str.dialog:_Printer___The_operation_was_not_successful_n
mov dword [esp + 8], str.PrintUIEntryW
mov dword [esp + 4], 0x10004038
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001684
lea eax, [ebp - 0x188]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
mov dword [ebp - 0x190], eax
sub esp, 8
test byte [0x10004038], 8
jne 0x10001e15
xor esi, esi
mov edx, 1
lea eax, [ebp - 0x198]
call sym._get_next_wchar
mov word [ebp - 0x136], si
lea esi, [ebp - 0x138]
mov edi, esi
mov word [ebp - 0x19e], ax
shr edi, 0x10
test ax, ax
je 0x10001858
cmp ax, 9
je 0x10001740
cmp ax, 0x20
jne 0x10001763
lea esi, [esi]
mov edx, 1
lea eax, [ebp - 0x198]
call sym._get_next_wchar
mov word [ebp - 0x19e], ax
cmp ax, 0x20
je 0x10001740
cmp ax, 9
je 0x10001740
mov word [ebp - 0x138], ax
cmp ax, 0x40
je 0x10001fbf
cmp ax, 0x2f
jne 0x10002083
xor edx, edx
lea eax, [ebp - 0x198]
call sym._get_next_wchar
mov ebx, dword [sym.imp.ucrtbase.dll_wcschr]
mov word [ebp - 0x19e], ax
lea esi, cs:[esi]
test ax, ax
je 0x10001831
mov word [ebp - 0x138], ax
movzx eax, ax
mov dword [esp + 4], eax
mov dword [esp], 0x10006210
call ebx
test eax, eax
je 0x10001970
movzx edx, byte [0x10004038]
mov ecx, dword [ebp - 0x18c]
sub eax, 0x10006210
sar eax, 1
and edx, 8
test ecx, ecx
je 0x100017ed
cmp word [ecx], 0
jne 0x10001ab0
mov ebx, dword [ebp - 0x184]
cmp ebx, dword [ebp - 0x188]
jge 0x10001a30
mov ecx, dword [ebp - 0x190]
mov ecx, dword [ecx + ebx*4]
inc ebx
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x184], ebx
mov dword [ebp + eax*4 - 0x17c], ecx
test dl, dl
jne 0x10001b30
xor ebx, ebx
mov word [ebp - 0x19e], bx
mov edx, 1
lea eax, [ebp - 0x198]
call sym._get_next_wchar
mov word [ebp - 0x19e], ax
test ax, ax
jne 0x1000172d
lea esi, [esi]
movzx edx, word [ebp - 0x180]
movzx eax, byte [0x10004038]
test dx, dx
je 0x10001680
mov word [ebp - 0x19e], dx
movzx edx, word [ebp - 0x17e]
mov word [ebp - 0x19c], dx
xor edx, edx
mov word [ebp - 0x19a], dx
test al, 1
je 0x10001684
lea esi, [ebp - 0x19e]
mov eax, esi
shr eax, 0x10
je 0x10002264
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10001f63
movzx eax, word [ebp - 0x19e]
test ax, ax
je 0x1000229b
mov ecx, edx
lea edx, [edx + 1]
cmp word [esi + ecx*2 + 2], 0
jne 0x100018d9
mov ebx, 0x224c
lea edx, [ebp - 0x136]
lea edi, [ebp - 0x16]
mov word [ebp - 0x138], bx
jmp 0x10001935
cmp ax, 9
je 0x100021a8
cmp ax, 0xa
jne 0x10002146
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
lea ebx, [ecx - 1]
test ecx, ecx
jle 0x10001f37
cmp edx, edi
ja 0x10001f37
movzx eax, word [esi]
mov ecx, ebx
add esi, 2
cmp ax, 0xd
je 0x10002128
jbe 0x100018fd
cmp ax, 0x22
je 0x10002197
cmp ax, 0x5c
jne 0x10002139
mov eax, 0x5c5c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000191d
movzx eax, word [ebp - 0x19e]
mov dword [esp], str.qwyzZ
mov dword [esp + 4], eax
call ebx
test eax, eax
je 0x10001b60
sub eax, str.qwyzZ
sar eax, 1
mov dword [ebp + eax*4 - 0x14c], 1
test byte [0x10004038], 8
jne 0x10001c30
movzx eax, word [ebp - 0x19e]
cmp ax, 0x3f
je 0x10001858
xor edx, edx
lea eax, [ebp - 0x198]
call sym._get_next_wchar
movzx ecx, word [ebp - 0x180]
mov word [ebp - 0x19e], ax
lea edx, [ecx - 0x53]
cmp dx, 0x16
ja 0x100017a0
mov ecx, 0x520021
bt ecx, edx
jae 0x100017a0
mov word [ebp - 0x17e], ax
mov word [ebp - 0x138], ax
test byte [0x10004038], 8
jne 0x10001bd0
xor edx, edx
lea eax, [ebp - 0x198]
call sym._get_next_wchar
mov word [ebp - 0x19e], ax
jmp 0x100017a0
mov dword [ebp + eax*4 - 0x17c], 0
test dl, dl
je 0x10001828
mov ebx, str._null_
test edi, edi
je 0x10001b13
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10001a7b
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._opt:__s___s_n
mov dword [esp + 8], str.parse_rundll
mov dword [esp + 4], 0x10004038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001828
mov dword [ebp - 0x18c], 0
mov dword [ebp + eax*4 - 0x17c], ecx
test dl, dl
je 0x10001828
mov eax, ecx
shr eax, 0x10
je 0x10001b3f
mov dword [esp + 4], 0xffffffff
mov ebx, str._invalid_
mov dword [esp], ecx
mov dword [ebp - 0x1a4], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x10001a48
mov ecx, dword [ebp - 0x1a4]
mov edx, 0xffffffff
mov eax, ecx
call sym._wine_dbgstr_wn.part.0
mov ebx, eax
test edi, edi
jne 0x10001a50
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10001a7b
test ecx, ecx
je 0x10001a43
mov eax, ecx
shr eax, 0x10
jne 0x10001ad0
movzx ecx, cx
mov dword [esp], str._04x
mov dword [esp + 4], ecx
call sym._wine_dbg_sprintf.constprop.0
mov ebx, eax
jmp 0x10001a48
movzx eax, word [ebp - 0x19e]
xor ecx, ecx
mov word [ebp - 0x17e], cx
mov word [ebp - 0x180], ax
test byte [0x10004038], 8
je 0x100019b2
test edi, edi
je 0x10001da8
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10001bb7
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._cmd:__s_n
jmp 0x10001c6f
test edi, edi
je 0x10001d70
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10001c03
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._sub:__s_n
mov dword [esp + 8], str.parse_rundll
mov dword [esp + 4], 0x10004038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001a0d
test edi, edi
je 0x10001d90
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10001c63
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.flag:__s_n
mov dword [esp + 8], str.parse_rundll
mov dword [esp + 4], 0x10004038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100019ab
test ebx, ebx
je 0x10001f2d
mov eax, ebx
shr eax, 0x10
je 0x10001dc0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x10001dd3
movzx eax, word [ebx]
test ax, ax
je 0x10001f9e
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x10001cd8
mov ecx, 0x224c
mov dword [ebp + 0x10], ebx
mov esi, ebx
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x10001d3b
cmp ax, 9
je 0x10001ee0
cmp ax, 0xa
jne 0x10001e59
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x16]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x10001ef1
test edx, edx
jle 0x10001ef1
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x10001ec8
jbe 0x10001d00
cmp ax, 0x22
je 0x10001eb0
cmp ax, 0x5c
jne 0x10001e4c
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10001d20
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10001c03
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10001c63
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10001bb7
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__p___p___s__0x_lx__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PrintUIEntryW
mov dword [esp + 4], 0x10004038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000164c
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x188]
mov dword [esp + 0xc], str.got__d_args_at__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.PrintUIEntryW
mov dword [esp + 4], 0x10004038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100016f9
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10001f25
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefa]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefa]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefa]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefa]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10001d20
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10001d20
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10001d20
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10001d20
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0x10]
test edi, edi
jle 0x10001fb7
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x10001dd3
mov byte [ecx], al
inc ecx
jmp 0x10001d20
mov eax, str._null_
jmp 0x10001dd3
mov byte [edx], 0x22
test ebx, ebx
jle 0x100022b1
mov esi, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.command_not_implemented:__s_n
mov dword [esp + 8], str.PrintUIEntryW
mov dword [esp + 4], 0x10004038
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
cmp word [ebp - 0x180], 0
jne 0x10001684
jmp 0x10001679
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x10001f0f
movzx edx, byte [0x10004038]
mov ebx, dword [ebp - 0x18c]
and edx, 1
test ebx, ebx
je 0x10001fdd
cmp word [ebx], 0
jne 0x10002284
mov ecx, dword [ebp - 0x184]
cmp ecx, dword [ebp - 0x188]
jge 0x10002252
mov eax, dword [ebp - 0x190]
mov ebx, dword [eax + ecx*4]
inc ecx
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x184], ecx
test dl, dl
je 0x1000168a
test ebx, ebx
je 0x1000225a
mov eax, ebx
shr eax, 0x10
je 0x100022b9
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x1000204f
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.redir_not_supported:__s_n
mov dword [esp + 8], str.parse_rundll
mov dword [esp + 4], 0x10004038
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004038]
jmp 0x10001680
movzx edx, word [ebp - 0x180]
movzx eax, byte [0x10004038]
cmp dx, 0x53
je 0x100021b9
cmp dx, 0x58
je 0x100021b9
test al, 1
je 0x10001684
lea ebx, [ebp - 0x19e]
mov eax, ebx
shr eax, 0x10
je 0x100022e9
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x100020e9
mov edx, 1
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x19e]
mov dword [esp + 0xc], str.0x_x:__s_is_unknown_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.parse_rundll
mov dword [esp + 4], 0x10004038
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x10004038]
jmp 0x10001680
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000191d
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x1000227c
mov ebx, eax
mov byte [edx], 0x5c
add edx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefa]
mov byte [edx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefa]
mov byte [edx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefa]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefa]
mov byte [edx - 1], al
mov byte [edx - 2], bl
jmp 0x1000191d
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000191d
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000191d
mov esi, dword [ebp - 0x18c]
lea ebx, [esi - 2]
mov dword [ebp - 0x18c], ebx
test al, 8
je 0x10001866
mov eax, ebx
shr eax, 0x10
je 0x100022d1
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x10002206
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x188]
mov dword [esp + 0xc], str._d_extra_Parameter__starting_with__s_n
inc eax
sub eax, dword [ebp - 0x184]
mov dword [esp + 8], str.parse_rundll
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10004038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx edx, word [ebp - 0x180]
movzx eax, byte [0x10004038]
jmp 0x10001866
test dl, dl
je 0x10001684
mov eax, str._null_
jmp 0x1000204f
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10001f63
mov byte [edx], al
inc edx
jmp 0x1000191d
mov dword [ebp - 0x18c], 0
test dl, dl
je 0x10001684
jmp 0x10002019
mov word [ebp - 0x138], 0x224c
lea edx, [ebp - 0x136]
mov byte [ebp - 0x136], 0x22
lea eax, [edx + 1]
jmp 0x10001f52
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x1000204f
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x10002206
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x100020e9