Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
xor ebx, ebx
push 0x8003
mov byte [0x40c058], bl
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4016a0
push 0x40b200
push esi
call fcn.00403175
add esp, 8
test eax, eax
jne 0x4016a0
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
mov esi, eax
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], al
call fcn.004026b0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00402700
mov cl, byte [ebp + 0x13]
push ebx
mov byte [ebp - 0x10], cl
lea ecx, [ebp - 0x10]
call fcn.004026b0
mov dl, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
call fcn.004026b0
push 1
lea eax, [ebp + 0x13]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp + 0x13], 0x2f
call fcn.00402240
mov ecx, dword [0x4091a0]
cmp eax, ecx
jne 0x4010d9
push ecx
lea ecx, [ebp - 0x48]
push ebx
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402040
jmp 0x401254
cmp eax, ebx
jne 0x40117f
push 1
lea edx, [ebp + 0x13]
push ecx
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp + 0x13], 0x2f
call fcn.004022d0
push 1
push eax
lea eax, [ebp + 0x13]
mov bl, 0x20
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp + 0x13], bl
call fcn.00402240
mov esi, eax
lea ecx, [ebp - 0x38]
push esi
push 0
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401eb0
mov edx, dword [0x4091a0]
lea ecx, [ebp - 0x20]
push edx
push 0
push eax
call fcn.00402040
push 1
lea ecx, [ebp - 0x38]
call fcn.004026b0
push 1
lea eax, [ebp + 0x13]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp + 0x13], bl
call fcn.00402350
mov ecx, dword [0x4091a0]
cmp eax, ecx
je 0x401254
push ecx
lea ecx, [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401eb0
mov edx, dword [0x4091a0]
lea ecx, [ebp - 0x10]
push edx
push 0
push eax
call fcn.00402040
push 1
lea ecx, [ebp - 0x38]
jmp 0x40124f
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401eb0
mov ecx, dword [0x4091a0]
push ecx
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402040
push 1
lea ecx, [ebp - 0x38]
call fcn.004026b0
mov eax, dword [0x4091a0]
push 1
lea edx, [ebp + 0x13]
push eax
push edx
lea ecx, [ebp - 0x10]
mov byte [ebp + 0x13], 0x20
call fcn.004023b0
mov edi, dword [0x4091a0]
mov esi, eax
mov eax, dword [ebp - 8]
inc esi
cmp eax, esi
jae 0x4011d5
call fcn.00402b77
lea ecx, [ebp - 0x10]
call fcn.004025e0
mov eax, dword [ebp - 8]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x4011ea
mov edi, ecx
cmp edi, ebx
jbe 0x401224
mov ecx, dword [ebp - 0xc]
sub eax, edi
sub eax, esi
push eax
lea eax, [ecx + edi]
add eax, esi
add ecx, esi
push eax
push ecx
call fcn.00402e40
mov ebx, dword [ebp - 8]
add esp, 0xc
sub ebx, edi
lea ecx, [ebp - 0x10]
push 0
push ebx
call fcn.004024c0
test al, al
je 0x401224
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402420
mov ecx, dword [0x4091a0]
lea edx, [ebp - 0x38]
push ecx
push esi
push edx
lea ecx, [ebp - 0x48]
call fcn.00401eb0
mov ecx, dword [0x4091a0]
push ecx
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00402040
push 1
lea ecx, [ebp - 0x38]
call fcn.004026b0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4012a1
push 0x10000
push str.sapregsv
push str.Usage:_sapregsv_DllName____u______i:__cmdline________n______s______w______c___n_n_u:_Unregister_server_n_n_i:_Call_DllInstall_with_optional_command_line_n_n_n:_Do_not_call_Dll_Un_registerServer___only_valid_in_conjunction_with_parameter__i___n_n_s:_Silent___no_message_boxes___n_n_w:_No_popup_windows___only_valid_in_conjunction_with_parameter__s___n_n_c:_Output_to_stdout
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
lea ecx, [ebp - 0x20]
call fcn.004026b0
push 1
lea ecx, [ebp - 0x10]
call fcn.004026b0
push 1
lea ecx, [ebp - 0x48]
call fcn.004026b0
xor eax, eax
lea esp, [ebp - 0x174]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov bl, 0x22
lea ecx, [ebp - 0x10]
mov byte [ebp + 0x13], bl
call fcn.00402440
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4012b9
xor esi, esi
jmp 0x4012bf
mov edx, dword [ebp - 8]
lea esi, [edx + eax]
lea ecx, [ebp - 0x10]
call fcn.00402440
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 1]
cmp eax, ecx
je 0x4012f3
mov dl, byte [ebp + 0x13]
cmp byte [eax], dl
je 0x4012df
inc eax
cmp eax, ecx
jne 0x4012d4
jmp 0x4012f3
cmp eax, ecx
je 0x4012f3
lea edx, [ebp + 0x13]
push edx
push eax
inc eax
push ecx
push eax
call fcn.004028c0
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4012ff
mov eax, 0x40919c
push 0x40b084
push eax
call fcn.00403175
add esp, 8
test eax, eax
je 0x401318
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401324
mov eax, 0x40919c
push 0x40b080
push eax
call fcn.00403175
add esp, 8
test eax, eax
je 0x4014a0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 1
test eax, eax
jne 0x40134d
mov eax, 0x40919c
push 0x40b07c
push eax
call fcn.00403175
add esp, 8
mov dword [ebp - 0x58], eax
mov al, byte [ebp + 0x13]
lea ecx, [ebp - 0x38]
push 0
mov byte [ebp - 0x38], al
call fcn.004026b0
mov edi, 0x40b078
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push 0x40b078
lea ecx, [ebp - 0x20]
call fcn.00402240
mov esi, eax
mov eax, dword [0x4091a0]
cmp esi, eax
je 0x401439
add esi, 3
push 1
lea ecx, [ebp + 0x13]
push esi
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], bl
call fcn.00402240
mov edi, eax
mov eax, dword [0x4091a0]
cmp edi, eax
jne 0x4013f7
push 1
lea edx, [ebp + 0x13]
push esi
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], 0x2f
call fcn.00402240
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00401eb0
mov ecx, dword [0x4091a0]
push ecx
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.00402040
push 1
lea ecx, [ebp - 0x68]
jmp 0x401434
lea esi, [edi + 1]
push 1
lea edx, [ebp + 0x13]
push esi
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], bl
call fcn.00402240
sub eax, edi
lea ecx, [ebp - 0x20]
dec eax
push eax
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00401eb0
mov ecx, dword [0x4091a0]
push ecx
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.00402040
push 1
lea ecx, [ebp - 0x68]
call fcn.004026b0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x401496
mov ebx, dword [ebp - 0x34]
test ebx, ebx
jne 0x401455
mov ebx, 0x40919c
test ebx, ebx
jne 0x401455
mov dword [ebp - 0x24], ebx
jmp 0x401485
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004031f0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x24], edi
mov edx, dword [ebp - 0x24]
push 0x40b070
push edx
call fcn.00401e50
add esp, 8
push 1
lea ecx, [ebp - 0x38]
call fcn.004026b0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4014ac
mov eax, 0x40919c
push 0x40b06c
push eax
call fcn.00403175
add esp, 8
test eax, eax
je 0x4014e8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], 1
test eax, eax
jne 0x4014d1
mov eax, 0x40919c
push 0x40b068
push eax
call fcn.00403175
add esp, 8
test eax, eax
je 0x4014e8
call fcn.00401db0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4014f4
mov eax, 0x40919c
push 0x40b064
push eax
call fcn.00403175
add esp, 8
test eax, eax
je 0x401521
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.CmdLine:__s_n
call fcn.00402df1
add esp, 8
mov al, byte [0x40c168]
mov ecx, 0x3f
mov byte [ebp - 0x168], al
xor eax, eax
lea edi, [ebp - 0x167]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x40154c
mov eax, 0x40919c
lea ecx, [ebp - 0x168]
push ecx
push ebx
push ebx
push ebx
push eax
call fcn.00402caa
lea edx, [ebp - 0x168]
push str..exe
push edx
call fcn.00403175
add esp, 0x1c
test eax, eax
je 0x40158f
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x401580
mov eax, 0x40919c
mov esi, dword [ebp - 0x28]
push esi
push eax
call fcn.00401860
add esp, 8
jmp 0x4015e4
lea eax, [ebp - 0x168]
push str..tlb
push eax
call fcn.00403175
add esp, 8
test eax, eax
mov eax, dword [ebp - 0xc]
je 0x4015c2
cmp eax, ebx
jne 0x4015b3
mov eax, 0x40919c
mov esi, dword [ebp - 0x28]
push esi
push eax
call fcn.00401980
add esp, 8
jmp 0x4015e4
cmp eax, ebx
jne 0x4015cb
mov eax, 0x40919c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x50]
push edx
push ecx
push esi
push eax
call fcn.004016d0
add esp, 0x14
mov edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x4015f2
mov eax, 0x40919c
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
push edx
push ecx
push edi
push esi
push eax
call fcn.00401b40
mov edx, dword [0x40c164]
add esp, 0x14
push ebx
push ebx
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x401641
mov al, byte [ecx - 1]
test al, al
je 0x401637
cmp al, 0xff
je 0x401637
dec al
mov byte [ecx - 1], al
jmp 0x401641
dec ecx
push ecx
call fcn.00402940
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x40166d
mov al, byte [ecx - 1]
test al, al
je 0x401663
cmp al, 0xff
je 0x401663
dec al
mov byte [ecx - 1], al
jmp 0x40166d
dec ecx
push ecx
call fcn.00402940
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
cmp ecx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x401699
mov al, byte [ecx - 1]
test al, al
je 0x40168f
cmp al, 0xff
je 0x40168f
dec al
mov byte [ecx - 1], al
jmp 0x401699
dec ecx
push ecx
call fcn.00402940
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10000
push str.sapregsv
push str.Usage:_sapregsv_DllName____u______i:__cmdline________n______s______w______c___n_n_u:_Unregister_server_n_n_i:_Call_DllInstall_with_optional_command_line_n_n_n:_Do_not_call_Dll_Un_registerServer___only_valid_in_conjunction_with_parameter__i___n_n_s:_Silent___no_message_boxes___n_n_w:_No_popup_windows___only_valid_in_conjunction_with_parameter__s___n_n_c:_Output_to_stdout
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x174]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10