Function at 0x50ed30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 8], edi
je 0x50f0c6
push str.libicaf.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x50ed66
push str.for_rtl_ICAF_INIT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x50ed92
call fcn.004d8870
push 0x5850cc
call fcn.004d87b0
add esp, 4
mov eax, dword [0x5850d0]
test eax, eax
je 0x50eda3
mov ebx, dword [ebp - 4]
mov dword [0x5850cc], 0
mov esp, ebp
pop ebp
ret
push fcn.004fc9b0
lea edx, [ebp + 0xc]
push edx
push ebx
call eax
add esp, 0xc
jmp 0x50ed66
lea eax, [ebp - 0x14]
push eax
push 0
push 0xc
call fcn.004f1dd0
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x50edc6
mov dword [0x58ba08], 0
jmp 0x50edec
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
push 0x50d7d0
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov ebx, dword [ebp - 0x14]
mov dword [0x58ba08], ebx
call fcn.0052a425
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0x50da20
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x518630
call fcn.005504d0
push 0x518660
call fcn.005504d0
push str.FOR_NOERROR_DIALOGS
call fcn.00501ed0
add esp, 0xc
test eax, eax
jne 0x50f0b6
call fcn.0052cc71
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.005504d0
add esp, 4
mov dword [0x58ba00], 0
mov dword [0x58ba04], 0x5850d4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x50ee73
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x50ee5e
dec eax
inc eax
lea edx, [ebp - 0xc]
push edx
push 0
push eax
call fcn.004f1dd0
add esp, 0xc
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x50ee9c
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x50ee87
dec eax
lea edx, [ebx + eax - 1]
cmp ebx, edx
ja 0x50efe1
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edi, 1
cmp ebx, edx
ja 0x50efe1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov esi, edx
movsx ecx, byte [ebx]
cmp ecx, 0x20
je 0x50f0a3
cmp ecx, 9
je 0x50f0a3
mov edx, dword [0x58ba00]
inc edx
mov dword [0x58ba00], edx
cmp edx, edi
jle 0x50ef22
cmp edi, 1
je 0x50efa5
add edi, 0xa
lea eax, [edi*4 - 0x28]
push eax
push 0x58ba04
lea ecx, [edi*4]
push ecx
call fcn.004f1e10
add esp, 0xc
test eax, eax
jne 0x50efde
mov edx, dword [0x58ba00]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x58ba04]
mov dword [ecx + edx*4 - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ebx]
cmp eax, 0x22
je 0x50ef51
test ecx, ecx
jne 0x50ef6e
cmp eax, 0x20
je 0x50f06f
cmp eax, 9
jne 0x50ef6e
jmp 0x50f06f
inc ebx
test ecx, ecx
movsx eax, byte [ebx]
je 0x50ef93
cmp eax, 0x22
je 0x50f081
xor ecx, ecx
cmp eax, 0x20
je 0x50ef7c
cmp eax, 9
je 0x50ef7c
mov byte [edx], al
inc ebx
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
cmp ebx, esi
jbe 0x50ef32
mov dword [ebp - 0x10], ecx
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp ebx, esi
jbe 0x50eec2
jmp 0x50efde
lea esi, [esi]
mov ecx, 1
cmp eax, 0x22
je 0x50ef51
jmp 0x50ef6e
add edi, 0xa
push 0x58ba04
push 0
lea eax, [edi*4]
push eax
call fcn.004f1dd0
add esp, 0xc
test eax, eax
jne 0x50efde
mov ecx, dword [0x58ba04]
mov eax, dword [0x5850d4]
mov dword [ecx], eax
mov edx, dword [0x58ba00]
mov eax, dword [ebp - 0xc]
jmp 0x50ef22
mov esi, dword [ebp - 0x18]
mov ebx, dword [0x5850d8]
mov eax, ebx
and eax, 1
mov edx, ebx
add eax, eax
and edx, 2
mov ecx, ebx
xor eax, 0x1f
add edx, edx
and ecx, 4
mov edi, ebx
xor eax, edx
add ecx, ecx
and edi, 8
mov edx, ebx
xor eax, ecx
add edi, edi
and edx, 0x10
shr edx, 4
xor eax, edi
xor eax, edx
test ebx, 0x10000
je 0x50f02e
test ebx, 0x200
lea edx, [eax + 0x1000000]
jne 0x50f02e
mov eax, edx
push 0x308001f
push eax
call fcn.0052d05c
push ebx
call fcn.0050d9c0
add esp, 0xc
call fcn.00518740
call fcn.00500ec0
call fcn.00518920
mov dword [0x5850d0], 1
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [0x5850cc], 0
mov esp, ebp
pop ebp
ret
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x50eec2
cmp ebx, esi
ja 0x50f09c
inc ebx
mov byte [edx], 0x22
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
movsx eax, byte [ebx]
cmp eax, 0x22
jne 0x50ef62
xor ecx, ecx
jmp 0x50ef51
nop
lea esi, [esi]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov esi, dword [ebp - 0x18]
inc ebx
jmp 0x50eeb2
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x50ee2a
cmp dword [ebp + 0xc], 0
jne 0x50ed47
jmp 0x50ed66