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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x40e0ec]
push ebx
push esi
push edi
xor edi, edi
push 0x8003
mov dword [ebp - 4], eax
mov byte [0x40ec80], 0
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x17c], edi
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 0x402846
push 0x40b50c
push esi
call fcn.00402e54
add esp, 8
test eax, eax
jne 0x402846
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
mov ebx, 0xf
mov ecx, eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], edi
mov byte [ebp - 0x70], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4022c3
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004020c0
push 1
push edi
lea eax, [ebp + 0x13]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x38], 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov byte [ebp - 0x1c], 0
mov byte [ebp + 0x13], 0x2f
call fcn.00401a20
cmp eax, 0xffffffff
jne 0x402315
push eax
push edi
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00401fd0
jmp 0x4023a8
cmp eax, edi
jne 0x402420
push 1
push 0xffffffffffffffff
lea edx, [ebp + 0x13]
push edx
lea ecx, [ebp - 0x74]
mov byte [ebp + 0x13], 0x2f
call fcn.00401af0
push 1
push eax
lea eax, [ebp + 0x13]
mov bl, 0x20
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp + 0x13], bl
call fcn.00401a20
mov esi, eax
push esi
push edi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x74]
call fcn.004021f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401d20
push 1
push esi
lea edx, [ebp + 0x13]
push edx
lea ecx, [ebp - 0x74]
mov byte [ebp + 0x13], bl
call fcn.00401b90
cmp eax, 0xffffffff
je 0x4023a3
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
call fcn.004021f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401d20
mov ebx, 0xf
mov edx, dword [ebp - 0x28]
cmp edx, edi
jne 0x40248c
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 edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 8]
mov esi, 0x10
cmp eax, esi
jb 0x4023e1
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402fff
add esp, 4
cmp dword [ebp - 0x24], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov byte [ebp - 0x1c], 0
jb 0x4023fc
mov edx, dword [ebp - 0x38]
push edx
call fcn.00402fff
add esp, 4
cmp dword [ebp - 0x5c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x38], 0
jb 0x40285c
mov eax, dword [ebp - 0x70]
push eax
call fcn.00402fff
add esp, 4
jmp 0x40285c
push eax
push edi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x74]
call fcn.004021f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401d20
push 1
push 0xffffffffffffffff
lea edx, [ebp + 0x13]
push edx
lea ecx, [ebp - 0x3c]
mov byte [ebp + 0x13], 0x20
call fcn.00401c10
mov esi, eax
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [ebp - 0x3c]
call fcn.00401d50
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x74]
call fcn.004021f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401d20
jmp 0x4023a8
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
mov esi, dword [ebp - 0x38]
mov byte [ebp + 0x13], 0x22
mov eax, esi
jae 0x4024a0
lea eax, [ebp - 0x38]
cmp ecx, 0x10
lea eax, [eax + edx + 1]
mov ecx, esi
jae 0x4024ae
lea ecx, [ebp - 0x38]
lea edx, [ebp + 0x13]
push edx
push eax
push ecx
lea eax, [ebp - 0x190]
push eax
call fcn.00401f80
mov eax, dword [ebp - 8]
mov esi, 0x10
add esp, 0x10
cmp eax, esi
mov eax, dword [ebp - 0x1c]
jae 0x4024d5
lea eax, [ebp - 0x1c]
push 0x40b39c
push eax
call fcn.00402e54
add esp, 8
test eax, eax
je 0x4024ed
mov dword [ebp - 0x178], edi
cmp dword [ebp - 8], esi
mov eax, dword [ebp - 0x1c]
jae 0x4024f8
lea eax, [ebp - 0x1c]
push 0x40b398
push eax
call fcn.00402e54
add esp, 8
test eax, eax
je 0x402648
cmp dword [ebp - 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x184], 1
jae 0x402523
lea eax, [ebp - 0x1c]
push 0x40b394
push eax
call fcn.00402e54
add esp, 8
push edi
push 0x40b390
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x54], 0
call fcn.00401dd0
mov esi, eax
cmp esi, 0xffffffff
je 0x4025d9
push 1
add esi, 3
push esi
lea ecx, [ebp + 0x13]
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], 0x22
call fcn.00401a20
mov edi, eax
cmp edi, 0xffffffff
push 1
jne 0x402597
push esi
lea edx, [ebp + 0x13]
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], 0x2f
call fcn.00401a20
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x1ac]
push eax
jmp 0x4025b7
lea esi, [edi + 1]
push esi
lea ecx, [ebp + 0x13]
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], 0x22
call fcn.00401a20
sub eax, edi
dec eax
push eax
push esi
lea edx, [ebp - 0x1ac]
push edx
lea ecx, [ebp - 0x20]
call fcn.004021f0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x58]
push eax
call fcn.00401fd0
lea ecx, [ebp - 0x1ac]
call fcn.00401d20
xor edi, edi
cmp dword [ebp - 0x44], edi
je 0x40263b
call dword [0x40e044]
mov ebx, eax
cmp dword [ebp - 0x40], 0x10
jb 0x4025fb
mov edi, dword [ebp - 0x54]
test edi, edi
jne 0x4025fe
mov dword [ebp - 0x17c], edi
jmp 0x402627
lea edi, [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00403400
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00401690
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
push 0x40b388
push eax
call fcn.00401520
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00401d20
mov esi, 0x10
cmp dword [ebp - 8], esi
mov eax, dword [ebp - 0x1c]
jae 0x402653
lea eax, [ebp - 0x1c]
push 0x40b384
push eax
call fcn.00402e54
add esp, 8
test eax, eax
je 0x402691
cmp dword [ebp - 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x180], 1
jae 0x40267a
lea eax, [ebp - 0x1c]
push 0x40b380
push eax
call fcn.00402e54
add esp, 8
test eax, eax
je 0x402691
call fcn.004019f0
cmp dword [ebp - 8], esi
mov eax, dword [ebp - 0x1c]
jae 0x40269c
lea eax, [ebp - 0x1c]
push 0x40b37c
push eax
call fcn.00402e54
add esp, 8
test eax, eax
je 0x4026cc
mov dword [ebp - 0x18c], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.CmdLine:__s_n
call fcn.00402f06
add esp, 8
xor eax, eax
mov byte [ebp - 0x174], 0
mov ecx, 0x3f
lea edi, [ebp - 0x173]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x38]
jae 0x4026f0
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x174]
push ecx
push 0
push 0
push 0
push eax
call fcn.00403852
lea edx, [ebp - 0x174]
push str..exe
push edx
call fcn.00402e54
add esp, 0x1c
test eax, eax
je 0x402738
cmp dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x38]
jae 0x402726
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x178]
push ecx
push eax
call fcn.00401170
add esp, 8
jmp 0x40279e
lea edx, [ebp - 0x174]
push str..tlb
push edx
call fcn.00402e54
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x24]
je 0x40276f
cmp eax, esi
mov eax, dword [ebp - 0x38]
jae 0x40275d
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x178]
push ecx
push eax
call fcn.00401770
add esp, 8
jmp 0x40279e
cmp eax, esi
mov eax, dword [ebp - 0x38]
jae 0x402779
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x188]
push edx
mov edx, dword [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x178]
push edx
push ecx
push eax
call section..text
add esp, 0x14
mov esi, eax
mov eax, dword [ebp - 0x24]
mov ebx, 0x10
cmp eax, ebx
mov eax, dword [ebp - 0x38]
jae 0x4027b2
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x180]
push edx
mov edx, dword [ebp - 0x178]
push ecx
push esi
push edx
push eax
call fcn.004012c0
mov eax, dword [0x40ed84]
add esp, 0x14
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], ebx
jb 0x4027fc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402fff
add esp, 4
cmp dword [ebp - 0x24], ebx
mov edi, 0xf
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
jb 0x402820
mov edx, dword [ebp - 0x38]
push edx
call fcn.00402fff
add esp, 4
cmp dword [ebp - 0x5c], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jb 0x40283f
mov eax, dword [ebp - 0x70]
push eax
call fcn.00402fff
add esp, 4
push esi
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 edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
lea esp, [ebp - 0x1b8]
mov ecx, dword [ebp - 4]
call fcn.00402e46
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10