Function at 0x4313d0
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 0x431766
push str.libicaf.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x431406
push str.for_rtl_ICAF_INIT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x431432
call fcn.0040fbf0
push 0x50a4c8
call fcn.0040f9b0
add esp, 4
mov eax, dword [0x50a4cc]
test eax, eax
je 0x431443
mov ebx, dword [ebp - 4]
mov dword [0x50a4c8], 0
mov esp, ebp
pop ebp
ret
push fcn.00416110
lea edx, [ebp + 0xc]
push edx
push ebx
call eax
add esp, 0xc
jmp 0x431406
lea eax, [ebp - 0x14]
push eax
push 0
push 0xc
call fcn.0040fe90
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x431466
mov dword [0x50c538], 0
jmp 0x43148c
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
push 0x42fd40
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov ebx, dword [ebp - 0x14]
mov dword [0x50c538], ebx
call fcn.0046b930
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0x4300b0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x43bc70
call fcn.004bf550
push 0x43bca0
call fcn.004bf560
push str.FOR_NOERROR_DIALOGS
call fcn.004320e0
add esp, 0xc
test eax, eax
jne 0x431756
call fcn.00474390
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.004bf480
add esp, 4
mov dword [0x50c530], 0
mov dword [0x50c534], 0x50a4d0
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 0x431513
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4314fe
dec eax
inc eax
lea edx, [ebp - 0xc]
push edx
push 0
push eax
call fcn.0040fe90
add esp, 0xc
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43153c
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x431527
dec eax
lea edx, [ebx + eax - 1]
cmp ebx, edx
ja 0x431681
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edi, 1
cmp ebx, edx
ja 0x431681
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov esi, edx
movsx ecx, byte [ebx]
cmp ecx, 0x20
je 0x431743
cmp ecx, 9
je 0x431743
mov edx, dword [0x50c530]
inc edx
mov dword [0x50c530], edx
cmp edx, edi
jle 0x4315c2
cmp edi, 1
je 0x431645
add edi, 0xa
lea eax, [edi*4 - 0x28]
push eax
push 0x50c534
lea ecx, [edi*4]
push ecx
call fcn.0040fed0
add esp, 0xc
test eax, eax
jne 0x43167e
mov edx, dword [0x50c530]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x50c534]
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 0x4315f1
test ecx, ecx
jne 0x43160e
cmp eax, 0x20
je 0x43170f
cmp eax, 9
jne 0x43160e
jmp 0x43170f
inc ebx
test ecx, ecx
movsx eax, byte [ebx]
je 0x431633
cmp eax, 0x22
je 0x431721
xor ecx, ecx
cmp eax, 0x20
je 0x43161c
cmp eax, 9
je 0x43161c
mov byte [edx], al
inc ebx
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
cmp ebx, esi
jbe 0x4315d2
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 0x431562
jmp 0x43167e
lea esi, [esi]
mov ecx, 1
cmp eax, 0x22
je 0x4315f1
jmp 0x43160e
add edi, 0xa
push 0x50c534
push 0
lea eax, [edi*4]
push eax
call fcn.0040fe90
add esp, 0xc
test eax, eax
jne 0x43167e
mov ecx, dword [0x50c534]
mov eax, dword [0x50a4d0]
mov dword [ecx], eax
mov edx, dword [0x50c530]
mov eax, dword [ebp - 0xc]
jmp 0x4315c2
mov esi, dword [ebp - 0x18]
mov ebx, dword [0x50a4d4]
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 0x4316ce
test ebx, 0x200
lea edx, [eax + 0x1000000]
jne 0x4316ce
mov eax, edx
push 0x308001f
push eax
call fcn.00474490
push ebx
call fcn.0042fff0
add esp, 0xc
call fcn.0043c120
call fcn.004281f0
call fcn.0043c300
mov dword [0x50a4cc], 1
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [0x50a4c8], 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 0x431562
cmp ebx, esi
ja 0x43173c
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 0x431602
xor ecx, ecx
jmp 0x4315f1
nop
lea esi, [esi]
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov esi, dword [ebp - 0x18]
inc ebx
jmp 0x431552
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x4314ca
cmp dword [ebp + 0xc], 0
jne 0x4313e7
jmp 0x431406