Function at 0x403540
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [edi - 2]
mov ebp, 1
mov dword [0x419860], ebp
cmp eax, 0xa
ja 0x403afa
cmp edi, 2
jne 0x403591
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x40357b
cmp eax, 0x2f
jne 0x403591
movzx eax, word [ecx + 2]
cmp eax, 0x3f
je 0x403afe
cmp eax, 0x68
je 0x403afe
lea eax, [edi - 1]
push eax
push str.Input_parameters:__d_supplied
push 2
mov ebx, 0x415428
mov dword [esp + 0x24], 0
call fcn.00401660
add esp, 0xc
mov esi, ebp
cmp edi, 1
jle 0x4035e3
mov ebp, dword [esp + 0x24]
lea esp, [esp]
push dword [ebp + esi*4]
mov ebx, 0x415428
push esi
push str._tParameter__d:__s
push 2
call fcn.00401660
inc esi
add esp, 0x10
cmp esi, edi
jl 0x4035c0
mov ebp, 1
xor ebx, ebx
mov dword [esp + 0x10], ebx
test edi, edi
jle 0x403909
mov edx, dword [sym.imp.MSVCR100.dll_wcstoul]
mov ecx, dword [sym.imp.MSVCR100.dll_swscanf_s]
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
mov esi, dword [eax + ebx*4]
cmp word [esi], 0x2d
jne 0x4037a1
movzx eax, word [esi + 2]
lea edi, [esi + 2]
cmp eax, 0x49
jne 0x40362e
mov edi, dword [esp + 0x20]
lea eax, [esi + 4]
mov dword [0x41a9dc], eax
jmp 0x4038fc
cmp eax, 0x53
jne 0x403644
mov edi, dword [esp + 0x20]
lea eax, [esi + 4]
mov dword [0x41a9e0], eax
jmp 0x4038fc
mov ecx, str.remoteservers:print
mov eax, edi
jmp 0x403650
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403676
test dx, dx
je 0x403672
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403676
add eax, 4
add ecx, 4
test dx, dx
jne 0x403650
xor eax, eax
jmp 0x40367b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40368f
or dword [0x43726c], 3
mov edi, dword [esp + 0x20]
jmp 0x4038f0
mov ecx, str.remoteservers:dump
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4036bc
test dx, dx
je 0x4036b8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4036bc
add eax, 4
add ecx, 4
test dx, dx
jne 0x403696
xor eax, eax
jmp 0x4036c1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4036d5
or dword [0x43726c], 0x25
mov edi, dword [esp + 0x20]
jmp 0x4038f0
mov ecx, str.remoteservers:freeze
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403706
test dx, dx
je 0x403702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4036e0
xor eax, eax
jmp 0x40370b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40371f
or dword [0x43726c], 0x29
mov edi, dword [esp + 0x20]
jmp 0x4038f0
mov ecx, str.remoteservers:resume
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40374c
test dx, dx
je 0x403748
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40374c
add eax, 4
add ecx, 4
test dx, dx
jne 0x403726
xor eax, eax
jmp 0x403751
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403765
or dword [0x43726c], 0x31
mov edi, dword [esp + 0x20]
jmp 0x4038f0
push 0x1a
push str.remoteservers:remoteinvoke
push edi
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x403791
push esi
call fcn.004065c0
mov edi, dword [esp + 0x20]
mov ebp, eax
mov dword [0x437270], ebp
jmp 0x4038f0
mov edi, dword [esp + 0x20]
mov ecx, dword [sym.imp.MSVCR100.dll_swscanf_s]
mov edx, dword [sym.imp.MSVCR100.dll_wcstoul]
mov eax, dword [esp + 0x18]
cmp eax, 9
ja case.default.0x4037ae
jmp dword [eax*4 + 0x403c44]
push 0xa
lea eax, [esp + 0x18]
push eax
push esi
call edx
add esp, 0xc
mov dword [0x41a9c0], eax
cmp esi, dword [esp + 0x14]
jne case.0x4037ae.0
push esi
push str.Invalid_value_for_process_id____ls
jmp 0x4038d7
push 0xa
lea eax, [esp + 0x18]
push eax
push esi
call edx
add esp, 0xc
mov dword [0x41a9c4], eax
cmp esi, dword [esp + 0x14]
jne case.0x4037ae.0
push esi
push str.Invalid_value_for_thread_id____ls
jmp 0x4038d7
push 0x419eb4
push 0x419eb0
push str._X:_X
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x403827
push esi
push str.Invalid_value_for_dump_flags____ls
jmp 0x4038d7
mov edx, dword [0x419eb0]
push 1
mov dword [0x41a9bc], edx
call fcn.004033f0
test byte [0x419eb0], 1
je case.0x4037ae.0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp case.0x4037ae.0
push 0x41a9b8
push 0x40f0e0
push esi
call ecx
add esp, 0xc
test eax, eax
jne case.0x4037ae.0
push esi
mov dword [0x41a9b8], eax
push str.Invalid_value_for_DumpInfo____ls
jmp 0x4038d7
mov dword [0x41a9c8], esi
jmp case.0x4037ae.0
push 0x41a9cc
push 0x40f0e0
push esi
call ecx
add esp, 0xc
test eax, eax
jne case.0x4037ae.0
push esi
mov dword [0x41a9cc], eax
push str.Invalid_value_for_exception_record____ls
jmp 0x4038d7
push 0x41a9d0
push 0x40f0e0
push esi
call ecx
add esp, 0xc
test eax, eax
jne case.0x4037ae.0
push esi
mov dword [0x41a9d0], eax
push str.Invalid_value_for_exception_context____ls
jmp 0x4038d7
mov dword [0x41a9d4], esi
jmp case.0x4037ae.0
mov dword [0x41a9d8], esi
jmp case.0x4037ae.0
push esi
push str.Unknown_parameter____ls
push 1
mov ebx, 0x415428
xor ebp, ebp
call fcn.00401660
mov ebx, dword [esp + 0x1c]
add esp, 0xc
inc dword [esp + 0x18]
mov edx, dword [sym.imp.MSVCR100.dll_wcstoul]
mov ecx, dword [sym.imp.MSVCR100.dll_swscanf_s]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, edi
jl 0x403600
mov ecx, dword [0x43726c]
and ecx, 0xffffffde
lea eax, [ecx - 1]
test ecx, eax
je 0x40392f
push str.Only_one_distributed_dumping_option_should_be_present
push 1
mov ebx, 0x415428
call fcn.00401660
add esp, 8
xor ebp, ebp
cmp dword [0x43726c], 0
je 0x403ae3
test dword [0x419eb0], 0x40000
je 0x403ae3
push str.Cannot_specify_remote_options_with_no_remote_activation_flag
push 1
mov ebx, 0x415428
call fcn.00401660
add esp, 8
xor ebp, ebp
or dword [0x415054], 0x20001000
push str.Parameter_error
push 1
mov ebx, 0x415428
call fcn.00401660
add esp, 8
test dword [0x419eb0], 0x100
je 0x403996
mov dword [0x419840], 1
push str.Parsed_parameters:
push 2
mov ebx, 0x415428
call fcn.00401660
push dword [0x41a9c0]
push str.____ProcessID___d
push 2
call fcn.00401660
push dword [0x41a9c4]
push str.____ThreadId___d
push 2
call fcn.00401660
push dword [0x419eb0]
push str.____Flags__0x_X
push 2
call fcn.00401660
push dword [0x419eb4]
push str.____MiniDumpFlags__0x_X
push 2
call fcn.00401660
push dword [0x41a9b8]
push str.____SqlInfoPtr__0x_p
push 2
call fcn.00401660
mov eax, dword [0x41a9c8]
add esp, 0x44
test eax, eax
jne 0x403a12
mov eax, str._NULL_
push eax
push str.____DumpDir___ls
push 2
mov ebx, 0x415428
call fcn.00401660
push dword [0x41a9cc]
push str.____ExceptionRecordPtr__0x_p
push 2
call fcn.00401660
push dword [0x41a9d0]
push str.____ContextPtr__0x_p
push 2
call fcn.00401660
mov eax, dword [0x41a9d4]
add esp, 0x24
test eax, eax
jne 0x403a59
mov eax, str._NULL_
push eax
push str.____ExtraFile___ls
push 2
mov ebx, 0x415428
call fcn.00401660
mov eax, dword [0x41a9d8]
add esp, 0xc
test eax, eax
jne 0x403a7c
mov eax, str._NULL_
push eax
push str.____PatternForExtraFiles___ls
push 2
mov ebx, 0x415428
call fcn.00401660
mov eax, dword [0x41a9dc]
add esp, 0xc
test eax, eax
jne 0x403a9f
mov eax, str._NULL_
push eax
push str.____InstanceName___ls
push 2
mov ebx, 0x415428
call fcn.00401660
mov eax, dword [0x41a9e0]
add esp, 0xc
test eax, eax
jne 0x403ac2
mov eax, str._NULL_
push eax
push str.____ServiceName___ls
push 2
mov ebx, 0x415428
call fcn.00401660
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 8
test ebp, ebp
je 0x403962
mov dword [0x419860], 2
jmp 0x403980
mov ebx, dword [esp + 0x24]
push dword [ebx]
mov esi, dword [sym.imp.MSVCR100.dll_wprintf]
push str.Usage:__ls__ProcessID__ThreadId__Flags_:MiniDumpFlags___SqlInfoPtr__DumpDir__ExceptionRecordPtr__ContextPtr__ExtraFile___PatternForExtraFiles____________I_InstanceName_____S_ServiceName____remoteservers:_printdumpfreezeresumeremote:guiddumporigin_signaturelocalIdportoperationType___n
call esi
add esp, 8
cmp edi, 2
jne 0x403c36
mov ecx, dword [ebx + 4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x403b2d
cmp eax, 0x2f
jne 0x403c36
movzx eax, word [ecx + 2]
cmp eax, 0x3f
je 0x403b3f
cmp eax, 0x68
jne 0x403c36
push str.__Flags:_n
call esi
push str.____dbgbreak__________________________0x0001_n
call esi
push str.____nominidump________________________0x0002_n
call esi
push str.____validate_image____________________0x0004_n
call esi
push str.____referenced_memory_________________0x0008_n
call esi
push str.____all_memory________________________0x0010_n
call esi
push str.____dump_all_threads__________________0x0020_n
call esi
push str.____match_file_name___________________0x0040_n
call esi
push str.____no_longer_used_flag_______________0x0080_n
call esi
push str.____verbose___________________________0x0100_n
call esi
push str.____wait_at_exit______________________0x0200_n
call esi
push str.____send_to_watson____________________0x0400_n
call esi
push str.____defaultflags______________________0x0800_n
call esi
push str.____maximumdump_______________________0x1000_n
call esi
push str.____mini_and_maxdump__________________0x2000_n
call esi
push str.____force_send_to_watson______________0x4000_n
call esi
add esp, 0x40
push str.____full_filtered_dump________________0x8000_n
call esi
push str.____no_auto_remote_dump_invocation____0x40000_n
call esi
push 0x40e958
call esi
push 0x40e95c
call esi
push str.____Normal____________________________0x0000_n
call esi
push str.____WithDataSegs______________________0x0001_n
call esi
push str.____WithFullMemory____________________0x0002_n
call esi
push str.____WithHandleData____________________0x0004_n
call esi
push str.____FilterMemory______________________0x0008_n
call esi
push str.____ScanMemory________________________0x0010_n
call esi
push str.____WithUnloadedModules_______________0x0020_n
call esi
push str.____WithIndirectlyReferencedMemory____0x0040_n
call esi
push str.____FilterModulePaths_________________0x0080_n
call esi
push str.____WithProcessThreadData_____________0x0100_n
call esi
push str.____WithPrivateReadWriteMemory________0x0200_n
call esi
push str.____WithoutOptionalData_______________0x0400_n
call esi
add esp, 0x40
push str.____WithFullMemoryInfo________________0x0800_n
call esi
push str.____WithThreadInfo____________________0x1000_n
call esi
add esp, 8
push 0x20001000
call dword [sym.imp.MSVCR100.dll_exit]
lea ecx, [ecx]
in al, dx
cmp byte [eax], al
mov ch, 0x37
inc eax
add ah, bl
aaa
inc eax
add byte [ebx], al
cmp byte [eax], al
push edx
cmp byte [eax], al
ja 0x403c92
inc eax
add byte [edi + 0x38], bh
inc eax
add byte [eax - 0x3effbfc8], ah
cmp byte [eax], al
leave
cmp byte [eax], al
int3
add byte [eax], al
cmp dword [0x419860], 2
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
jb 0x403fc7
mov eax, dword [0x419ed0]
test eax, eax
je 0x403ccb
push eax
push str.Dump_is_associated_with_file__ls
push 2
mov ebx, 0x415428
call fcn.00401660
add esp, 0xc
mov eax, dword [0x419eb0]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x400040
je 0x403d94
push 0x419a96
mov ecx, 0x419ebc
call fcn.00408c40
test eax, eax
je 0x403d8f
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
push 0x419a96
call edi
mov esi, dword [0x419ef8]
mov dword [0x419eac], eax
cmp eax, 0xffffffff
jne 0x403ef8
test esi, esi
je 0x403d8f
mov eax, dword [0x419eb0]
test eax, 0x400000
je 0x403d94
call ebp
cmp eax, 0x50
jne 0x403d8f
push esi
push str.Not_creating_an_additional_dump__because_dump_for_stack_signature__p_already_exists.
push 2
mov ebx, 0x415428
call fcn.00401660
mov esi, dword [0x419ed0]
add esp, 0xc
test esi, esi
je 0x403d88
push esi
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp eax, 0xffffffff
jne 0x403d88
call dword [sym.imp.MSVCR100.dll__errno]
push dword [eax]
push esi
push str.Unable_to_delete_additional_dump_file__s__errno__d_
push 2
call fcn.00401660
add esp, 0x10
xor eax, eax
jmp 0x403fd5
mov eax, dword [0x419eb0]
cmp dword [0x419ed4], 0
jne 0x403e8a
mov ecx, dword [0x419ee4]
test ecx, ecx
jne 0x403db7
cmp dword [0x41a9b8], ecx
je 0x403e8a
mov edx, dword [0x419ee8]
push eax
call fcn.00401f40
mov ebx, eax
test ebx, ebx
je 0x403ee7
xor eax, eax
push 0x208
push eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x2a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [0x419ee4], 0
mov dword [esp + 0x1c], 0x20a
mov dword [esp + 0x18], 0
mov eax, str.ErrorDumpDir
jne 0x403e0a
mov eax, str.ErrorReportingDir
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e83
cmp dword [esp + 0x18], 1
jne 0x403e83
mov ecx, 0x41abec
lea esi, [esp + 0x20]
xor edi, edi
mov edx, 0x103
sub esi, ecx
lea eax, [edx + 0x7ffffefb]
test eax, eax
je 0x403e5e
movzx eax, word [esi + ecx]
test ax, ax
je 0x403e5e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x403e40
jmp 0x403e62
test edx, edx
jne 0x403e6a
sub ecx, 2
mov edi, 0x8007007a
xor eax, eax
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov word [ecx], ax
jne 0x403e83
mov dword [0x419ed4], 0x41abec
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea esp, [esp]
push 0x419a96
push dword [0x419ed4]
mov ebx, 0x41988c
call fcn.00408ee0
test eax, eax
je 0x403ecc
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
push 0x419a96
call edi
mov dword [0x419eac], eax
cmp eax, 0xffffffff
jne 0x403ef8
call ebp
mov edi, eax
cmp edi, 0x50
jne 0x403f4d
inc esi
cmp esi, 5
jge 0x403faf
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x403e90
or dword [0x415054], 0x20000002
xor eax, eax
jmp 0x403fd5
mov dword [esp + 0x14], 1
mov edx, 0x104
mov ecx, 0x419ca0
lea ebx, [ebx]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x403f3c
movzx eax, word [ecx - 0x20a]
test ax, ax
je 0x403f3c
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x403f10
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x403fd1
test edx, edx
jne 0x403f43
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x403fd1
push 0
push 0x400
lea eax, [esp + 0x238]
push eax
push 0x400
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebx, 0x415428
test eax, eax
je 0x403f97
lea eax, [esp + 0x230]
push eax
push edi
push 0x419a96
push str.Create_dump_file__ls_failed__0x_x____ls
push 1
call fcn.00401660
add esp, 0x14
jmp 0x403fac
push edi
push 0x419a96
push str.Create_dump_file__ls_failed_Error_Code_0x_x
push 1
call fcn.00401660
add esp, 0x10
cmp esi, 5
jne 0x403fc7
push 5
push str.Create_dump_file_failed_after__d_retries
push 1
mov ebx, 0x415428
call fcn.00401660
add esp, 0xc
or dword [0x415054], 0x20000002
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bb9d
add esp, 0xa2c
ret