Function at 0x4630d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x463618
push str.libicaf.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x463109
push str.for_rtl_ICAF_INIT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
jne 0x463604
fld qword [0x505e40]
fldz
fucom st(1)
fnstsw ax
fxch st(1)
fstp st(0)
sahf
jp 0x463122
je 0x4635ea
fstp st(0)
push str.PIN_VM_LD_LIBRARY_PATH
call fcn.004adde5
add esp, 4
test eax, eax
je 0x4635d8
test eax, eax
je 0x4635be
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push ebx
push eax
call fcn.004adb99
push ebx
push ebx
push ebx
call fcn.00462b80
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov esi, edx
not edx
and esi, 0x1000000
mov ecx, edx
mov edi, edx
and ecx, 2
and edi, 4
shr esi, 8
shr ecx, 1
shr edi, 1
or esi, ecx
mov ecx, edx
or esi, edi
and ecx, 8
mov edi, edx
shr ecx, 1
and edi, 0x10
and edx, 1
or esi, ecx
shr edi, 1
shl edx, 4
or esi, edi
or edx, eax
or esi, edx
and esi, 0xfc1fffff
push esi
push 0x505e54
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, esi
mov eax, esi
and edi, 1
and eax, 2
add edi, edi
mov edx, esi
xor edi, 0x1f
add eax, eax
and edx, 4
mov ecx, esi
xor edi, eax
add edx, edx
and ecx, 8
mov eax, esi
xor edi, edx
add ecx, ecx
and eax, 0x10
xor edi, ecx
shr eax, 4
xor edi, eax
test esi, 0x10000
je 0x4631f1
mov eax, edi
or eax, 0x1000000
test esi, 0x200
jne 0x4631f1
mov edi, eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004adb99
push 0x308001f
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.004adb99
push esi
mov eax, 1
push eax
push eax
call fcn.00462b80
add esp, 0x24
call fcn.00439bd0
push 0x505e48
call fcn.00439a70
add esp, 4
mov eax, dword [0x505e4c]
test eax, eax
je 0x463248
mov dword [0x505e48], 0
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push 0
push 0xc
call fcn.00460c10
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x46326b
mov dword [0x50c164], 0
jmp 0x463291
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x24]
push 0x4613b0
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x24]
mov dword [ecx], edx
mov ebx, dword [ebp - 0x24]
mov dword [0x50c164], ebx
call fcn.004a91b7
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.FOR_DISABLE_CONSOLE_CTRL_HANDLER
call fcn.0046f7a0
add esp, 4
test eax, eax
jne 0x4632b7
push 1
push 0x461a60
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x47ae20
call fcn.004a89c0
push 0x47ae50
call fcn.004a89c0
push str.FOR_NOERROR_DIALOGS
call fcn.0046f7a0
add esp, 0xc
test eax, eax
jne 0x4635ae
call fcn.004adea6
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.004a89c0
add esp, 4
mov dword [0x50c15c], 0
mov dword [0x50c160], 0x505e50
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 0x463329
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x463314
dec eax
mov edx, eax
lea eax, [ebp - 0x18]
push eax
push 0
inc edx
push edx
call fcn.00460c10
add esp, 0xc
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x463354
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x46333f
dec eax
lea esi, [ebx + eax - 1]
cmp ebx, esi
ja 0x46343d
xor edx, edx
mov edi, 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
cmp ebx, esi
ja 0x46343d
movsx edx, byte [ebx]
cmp edx, 0x20
je 0x46356f
cmp edx, 9
je 0x46356f
mov ecx, dword [0x50c15c]
inc ecx
mov dword [0x50c15c], ecx
cmp ecx, edi
jle 0x4633d1
cmp edi, 1
je 0x463575
add edi, 0xa
lea eax, [edi*4 - 0x28]
push eax
push 0x50c160
lea edx, [edi*4]
push edx
call fcn.00460c50
add esp, 0xc
test eax, eax
jne 0x46343d
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x50c15c]
mov edx, dword [0x50c160]
mov dword [edx + ecx*4 - 4], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [ebx]
cmp eax, 0x22
jne 0x463413
inc ebx
test ecx, ecx
jne 0x4633fb
movsx eax, byte [ebx]
cmp eax, 0x22
jne 0x46352a
inc ebx
movsx eax, byte [ebx]
cmp eax, 0x22
je 0x46354e
xor ecx, ecx
cmp eax, 0x20
jne 0x463420
jmp 0x463534
test ecx, ecx
jne 0x463429
cmp eax, 0x20
je 0x463534
cmp eax, 9
je 0x463534
mov byte [edx], al
inc ebx
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp ebx, esi
jbe 0x4633e1
mov byte [edx], 0
inc dword [ebp - 0x18]
mov ebx, dword [0x505e54]
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 esi, ebx
xor eax, edx
add ecx, ecx
and esi, 8
mov edi, ebx
xor eax, ecx
add esi, esi
and edi, 0x10
shr edi, 4
xor eax, esi
xor eax, edi
test ebx, 0x10000
je 0x46348a
test ebx, 0x200
lea edx, [eax + 0x1000000]
jne 0x46348a
mov eax, edx
push 0x308001f
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004adb99
push ebx
mov eax, 1
push eax
push eax
call fcn.00462b80
add esp, 0x18
call fcn.0047af50
call fcn.0046e830
call fcn.0047b1a0
push str.FOR_FASTMEM_NORETRY
call fcn.0046f7a0
add esp, 4
test eax, eax
je 0x4634d3
push 1
call fcn.00460ce0
add esp, 4
push str.FOR_FASTMEM_RETRY_WARN
call fcn.0046f7a0
add esp, 4
test eax, eax
je 0x4634ee
push 2
call fcn.00460ce0
add esp, 4
push str.FOR_FASTMEM_RETRY
call fcn.0046f7a0
add esp, 4
test eax, eax
je 0x463509
push 3
call fcn.00460ce0
add esp, 4
call fcn.00460d00
mov dword [0x505e4c], 1
mov dword [0x505e48], 0
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, 1
jmp 0x463429
mov dword [ebp - 0x20], ecx
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp ebx, esi
jbe 0x463375
jmp 0x46343d
cmp ebx, esi
ja 0x463569
inc ebx
mov byte [edx], 0x22
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
movsx eax, byte [ebx]
cmp eax, 0x22
jne 0x463407
inc ebx
jmp 0x4633ee
inc ebx
jmp 0x46336d
push 0x50c160
push 0
push 0x2c
call fcn.00460c10
add esp, 0xc
test eax, eax
jne 0x46343d
mov edx, dword [0x50c160]
mov edi, 0xb
mov eax, dword [0x505e50]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x50c15c]
jmp 0x4633d1
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x4632e0
push str.PIN_CRT_TZDATA
call fcn.004adde5
add esp, 4
test eax, eax
jne 0x463141
jmp 0x46321b
push str.PIN_APP_LD_LIBRARY_PATH
call fcn.004adde5
add esp, 4
jmp 0x463139
fstp qword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00458270
add esp, 4
fstp qword [0x505e40]
jmp 0x463124
push fcn.00464d00
lea eax, [ebp + 0xc]
push eax
push ebx
call edx
add esp, 0xc
jmp 0x463109
cmp dword [ebp + 0xc], 0
jne 0x4630e4
jmp 0x463109