Function at 0x401850
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [ebp]
xor edi, edi
test eax, eax
jle 0x40188e
xor ebx, ebx
lea esp, [esp]
mov eax, dword [ebp + 4]
lea ecx, [ebx + eax + 4]
push ecx
call fcn.00402b0b
mov eax, dword [ebp]
add esp, 4
inc edi
add ebx, 0x208c
cmp edi, eax
jl 0x401870
xor eax, eax
mov ax, word [esi]
test ax, ax
je 0x4018d9
push eax
call fcn.004026e2
add esp, 4
test eax, eax
jne 0x4018b3
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x401898
jmp 0x4018d9
xor eax, eax
mov ax, word [esi]
test ax, ax
je 0x4018d9
lea ecx, [ecx]
push eax
call fcn.004026e2
add esp, 4
test eax, eax
je 0x4018d9
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4018c0
mov edx, dword [0x40c088]
push edx
push esi
call fcn.0040257b
add esp, 8
test eax, eax
je 0x401bd7
mov eax, dword [0x40c08c]
push eax
push esi
call fcn.0040257b
add esp, 8
test eax, eax
je 0x401bd7
mov ecx, ebp
call fcn.004013f0
mov ax, word [esi]
test ax, ax
je 0x401ba4
jmp 0x401920
cmp ax, 0x2d
je 0x401930
cmp ax, 0x2f
jne 0x401b33
lea edi, [esi + 2]
mov esi, edi
cmp word [esi], 0
mov dword [esp + 0x10], edi
je 0x40195a
nop
xor ecx, ecx
mov cx, word [esi]
push ecx
call fcn.004026e2
add esp, 4
test eax, eax
jne 0x40195a
add esi, 2
cmp word [esi], ax
jne 0x401940
mov word [esi], 0
push edi
add esi, 2
call fcn.00402b0b
mov eax, dword [ebp]
xor ebx, ebx
add esp, 4
test eax, eax
mov dword [esp + 0x14], ebx
jle 0x401b11
xor edi, edi
mov edi, edi
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
lea eax, [edi + edx + 4]
push eax
push ecx
call fcn.0040257b
add esp, 8
test eax, eax
je 0x4019b0
mov eax, dword [ebp]
inc ebx
add edi, 0x208c
cmp ebx, eax
jl 0x401980
mov dword [esp + 0x14], ebx
jmp 0x401b0d
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], ebx
imul ebx, ebx, 0x208c
lea eax, [ebx + edx + 4]
push eax
call fcn.00402876
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*2 + 2]
xor edx, edx
mov dx, word [edi]
push edx
call fcn.004026e2
add esp, 8
test eax, eax
je 0x401a18
xor eax, eax
mov ax, word [edi]
test ax, ax
je 0x401a18
jmp 0x4019f0
push eax
call fcn.004026e2
add esp, 4
test eax, eax
je 0x401a18
mov ax, word [edi]
cmp ax, 0x2d
je 0x401a18
cmp ax, 0x2f
je 0x401a18
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4019f0
mov esi, edi
lea ebx, [ebx]
cmp word [esi], 0
je 0x401a50
xor eax, eax
mov ax, word [esi]
push eax
call fcn.004026e2
add esp, 4
test eax, eax
jne 0x401a50
mov ax, word [esi]
cmp ax, 0x2d
je 0x401a50
cmp ax, 0x2f
je 0x401a50
add esi, 2
cmp word [esi], 0
jne 0x401a26
mov ax, word [esi]
cmp ax, 0x2d
je 0x401a5f
cmp ax, 0x2f
jne 0x401a77
xor ecx, ecx
mov cx, word [esi - 2]
push ecx
call fcn.004026e2
add esp, 4
test eax, eax
jne 0x401a77
add esi, 2
jmp 0x401a20
mov ax, word [esi]
cmp ax, 0x2d
je 0x401b09
cmp ax, 0x2f
je 0x401b09
test ax, ax
push edi
je 0x401b59
mov word [esi], 0
mov edx, dword [ebp + 4]
lea eax, [ebx + edx + 0x84]
push eax
call fcn.004026f5
mov ecx, dword [ebp + 4]
mov dword [ebx + ecx + 0x2084], 0
mov edx, dword [ebp + 4]
mov eax, dword [ebx + edx + 0x2088]
add esp, 8
test eax, eax
je 0x401ade
push ebp
mov eax, edx
push edi
call dword [ebx + eax + 0x2088]
add esp, 8
test eax, eax
je 0x401bf2
add esi, 2
xor eax, eax
mov ax, word [esi]
test ax, ax
je 0x401b09
jmp 0x401af0
push eax
call fcn.004026e2
add esp, 4
test eax, eax
je 0x401b09
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x401af0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ebx, dword [ebp]
je 0x401bb1
mov ax, word [esi]
test ax, ax
jne 0x401920
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov ecx, dword [str._nI_do_not_recognize_the_option___s__n]
push esi
push ecx
push 0x424768
call fcn.004025b2
add esp, 0xc
mov ecx, ebp
call fcn.00401330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 4]
imul esi, esi, 0x208c
lea eax, [esi + edx + 0x84]
push eax
call fcn.004026f5
mov ecx, dword [ebp + 4]
mov dword [esi + ecx + 0x2084], 0
mov edx, dword [ebp + 4]
mov eax, dword [esi + edx + 0x2088]
add esp, 8
test eax, eax
je 0x401ba4
push ebp
mov eax, edx
push edi
call dword [esi + eax + 0x2088]
add esp, 8
test eax, eax
je 0x401bf2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov ecx, dword [str._nI_do_not_recognize_the_option___s__n]
push edi
push ecx
push 0x424768
call fcn.004025b2
add esp, 0xc
mov ecx, ebp
call fcn.00401330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [str.Export_program_for_sqlserver_6.5_to_7.0_conversion._n]
push edx
push 0x424768
call fcn.004025b2
add esp, 8
mov ecx, ebp
call fcn.00401330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret