Function at 0x572e90
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 0x573226
push str.libicaf.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x572ec6
push str.for_rtl_ICAF_INIT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x572ef2
call fcn.005523f0
push 0x5ea9c4
call fcn.00552330
add esp, 4
mov eax, dword [0x5ea9c8]
test eax, eax
je 0x572f03
mov ebx, dword [ebp - 4]
mov dword [0x5ea9c4], 0
mov esp, ebp
pop ebp
ret
push fcn.00560040
lea edx, [ebp + 0xc]
push edx
push ebx
call eax
add esp, 0xc
jmp 0x572ec6
lea eax, [ebp - 0x14]
push eax
push 0
push 0xc
call fcn.005586b0
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x572f26
mov dword [0x5f1318], 0
jmp 0x572f4c
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
push 0x571930
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov ebx, dword [ebp - 0x14]
mov dword [0x5f1318], ebx
call fcn.0058eb38
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0x571b80
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x57c4c0
call fcn.005b4340
push 0x57c4f0
call fcn.005b4340
push str.FOR_NOERROR_DIALOGS
call fcn.00566e20
add esp, 0xc
test eax, eax
jne 0x573216
call fcn.00590bef
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.005b4340
add esp, 4
mov dword [0x5f1310], 0
mov dword [0x5f1314], 0x5ea9cc
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 0x572fd3
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x572fbe
dec eax
inc eax
lea edx, [ebp - 0xc]
push edx
push 0
push eax
call fcn.005586b0
add esp, 0xc
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x572ffc
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x572fe7
dec eax
lea edx, [ebx + eax - 1]
cmp ebx, edx
ja 0x573141
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edi, 1
cmp ebx, edx
ja 0x573141
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov esi, edx
movsx ecx, byte [ebx]
cmp ecx, 0x20
je 0x573203
cmp ecx, 9
je 0x573203
mov edx, dword [0x5f1310]
inc edx
mov dword [0x5f1310], edx
cmp edx, edi
jle 0x573082
cmp edi, 1
je 0x573105
add edi, 0xa
lea eax, [edi*4 - 0x28]
push eax
push 0x5f1314
lea ecx, [edi*4]
push ecx
call fcn.005586f0
add esp, 0xc
test eax, eax
jne 0x57313e
mov edx, dword [0x5f1310]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x5f1314]
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 0x5730b1
test ecx, ecx
jne 0x5730ce
cmp eax, 0x20
je 0x5731cf
cmp eax, 9
jne 0x5730ce
jmp 0x5731cf
inc ebx
test ecx, ecx
movsx eax, byte [ebx]
je 0x5730f3
cmp eax, 0x22
je 0x5731e1
xor ecx, ecx
cmp eax, 0x20
je 0x5730dc
cmp eax, 9
je 0x5730dc
mov byte [edx], al
inc ebx
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
cmp ebx, esi
jbe 0x573092
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 0x573022
jmp 0x57313e
lea esi, [esi]
mov ecx, 1
cmp eax, 0x22
je 0x5730b1
jmp 0x5730ce
add edi, 0xa
push 0x5f1314
push 0
lea eax, [edi*4]
push eax
call fcn.005586b0
add esp, 0xc
test eax, eax
jne 0x57313e
mov ecx, dword [0x5f1314]
mov eax, dword [0x5ea9cc]
mov dword [ecx], eax
mov edx, dword [0x5f1310]
mov eax, dword [ebp - 0xc]
jmp 0x573082
mov esi, dword [ebp - 0x18]
mov ebx, dword [0x5ea9d0]
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 0x57318e
test ebx, 0x200
lea edx, [eax + 0x1000000]
jne 0x57318e
mov eax, edx
push 0x308001f
push eax
call fcn.00590fda
push ebx
call fcn.00571b20
add esp, 0xc
call fcn.0057c5d0
call fcn.00564530
call fcn.0057c7b0
mov dword [0x5ea9c8], 1
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [0x5ea9c4], 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 0x573022
cmp ebx, esi
ja 0x5731fc
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 0x5730c2
xor ecx, ecx
jmp 0x5730b1
nop
lea esi, [esi]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov esi, dword [ebp - 0x18]
inc ebx
jmp 0x573012
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x572f8a
cmp dword [ebp + 0xc], 0
jne 0x572ea7
jmp 0x572ec6