Function at 0x6070a0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x414
fldz
fld qword [0x7f68c0]
mov edx, dword [0x7adbc0]
fucomp st(1)
fnstsw ax
xor edx, ebp
mov dword [ebp - 0x10], edx
sahf
mov ebx, dword [ebp + 8]
jp 0x6070cf
je 0x607723
fstp st(0)
test ebx, ebx
je 0x607714
push str.libicaf.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x6070fe
push str.for_rtl_ICAF_INIT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
jne 0x607700
push 0x3e9
push 0
lea edi, [ebp - 0x3fc]
push edi
call fcn.0065d380
add esp, 0xc
push 0x3e8
push edi
push str.PIN_VM_LD_LIBRARY_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jbe 0x607136
cmp esi, 0x3e8
jae 0x607136
inc esi
jmp 0x60713d
mov byte [ebp - 0x3fc], 0
call fcn.006c9125
xor ebx, ebx
test esi, esi
mov eax, dword [eax]
sete bl
or eax, ebx
je 0x607189
push 0x3e8
push edi
push str.PIN_APP_LD_LIBRARY_PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jbe 0x60717a
cmp esi, 0x3e8
jae 0x607743
xor ebx, ebx
inc esi
sete bl
jmp 0x607189
mov ebx, 0
mov byte [ebp - 0x3fc], 0
sete bl
call fcn.006c9125
or ebx, dword [eax]
je 0x6071bb
push 0x3e8
push edi
push str.PIN_CRT_TZDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jbe 0x6071b4
cmp esi, 0x3e8
jae 0x6071b4
inc esi
jmp 0x6071bb
mov byte [ebp - 0x3fc], 0
call fcn.006c9125
cmp dword [eax], 0
mov eax, 0
sete al
test eax, esi
je 0x6072b9
xor eax, eax
lea edx, [ebp - 0x40c]
push eax
push eax
push edx
call fcn.006c88e6
xor eax, eax
push eax
push eax
push eax
call fcn.006069b0
add esp, 0x18
mov ecx, dword [ebp - 0x40c]
mov ebx, ecx
not ecx
and ebx, 0x1000000
mov esi, ecx
mov edi, ecx
and esi, 2
and edi, 4
shr ebx, 8
mov edx, ecx
shr esi, 1
and edx, 8
shr edi, 1
or ebx, esi
mov esi, ecx
or ebx, edi
shr edx, 1
and esi, 0x10
and ecx, 1
or ebx, edx
shr esi, 1
mov edx, 0x7f68d4
shl ecx, 4
or ebx, esi
or ecx, eax
or ebx, ecx
and ebx, 0xfc1fffff
mov eax, ebx
xchg dword [edx], eax
mov esi, ebx
mov edx, ebx
and esi, 1
and edx, 2
add esi, esi
mov ecx, ebx
xor esi, 0x1f
add edx, edx
and ecx, 4
mov edi, ebx
xor esi, edx
add ecx, ecx
and edi, 8
mov edx, ebx
xor esi, ecx
add edi, edi
and edx, 0x10
xor esi, edi
shr edx, 4
xor esi, edx
test ebx, 0x10000
je 0x607287
test ebx, 0x200
lea edx, [esi + 0x1000000]
jne 0x607287
mov esi, edx
xor edx, edx
lea ecx, [ebp - 0x408]
push edx
push edx
push ecx
call fcn.006c88e6
push 0x308001f
push esi
lea edx, [ebp - 0x418]
push edx
call fcn.006c88e6
push ebx
mov eax, 1
push eax
push eax
call fcn.006069b0
add esp, 0x24
call fcn.00607fe0
push 0x7f68c8
call fcn.00607e00
add esp, 4
mov eax, dword [0x7f68cc]
test eax, eax
je 0x6072f4
xor eax, eax
mov dword [0x7f68c8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
je 0x607626
call fcn.00693023
lea eax, [ebp - 0x414]
push eax
push 0
push 0xc
call fcn.005e1480
add esp, 0xc
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x60731d
mov dword [0x22dfb04], 0
jmp 0x60734c
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x414]
push 0x605520
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx], edx
mov ebx, dword [ebp - 0x414]
mov dword [0x22dfb04], ebx
call fcn.0069348c
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.FOR_DISABLE_CONSOLE_CTRL_HANDLER
call fcn.0061ce10
add esp, 4
test eax, eax
jne 0x607372
push 1
push 0x605810
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x632010
call fcn.00692340
push 0x632040
call fcn.00692350
push str.FOR_NOERROR_DIALOGS
call fcn.0061ce10
add esp, 0xc
test eax, eax
jne 0x6076f0
call fcn.006c9975
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.00692270
add esp, 4
mov dword [0x22dfafc], 0
mov dword [0x22dfb00], 0x7f68d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x6073e4
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x6073cf
dec eax
mov edx, eax
lea eax, [ebp - 0x404]
push eax
push 0
inc edx
push edx
call fcn.005e1480
add esp, 0xc
mov ebx, dword [ebp - 0x404]
test ebx, ebx
je 0x6076cb
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x607420
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x60740b
dec eax
lea eax, [esi + eax - 1]
cmp esi, eax
ja 0x60752d
xor edx, edx
mov edi, 1
mov dword [ebp - 0x400], edx
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp esi, ebx
ja 0x60752d
movsx edx, byte [esi]
cmp edx, 0x20
je 0x607688
cmp edx, 9
je 0x607688
mov ecx, dword [0x22dfafc]
inc ecx
mov dword [0x22dfafc], ecx
cmp ecx, edi
jle 0x6074aa
cmp edi, 1
je 0x60768e
add edi, 0xa
lea edx, [edi*4 - 0x28]
push edx
push 0x22dfb00
lea ecx, [edi*4]
push ecx
call fcn.005e14d0
add esp, 0xc
test eax, eax
jne 0x60752d
mov eax, dword [ebp - 0x404]
mov ecx, dword [0x22dfafc]
mov edx, dword [0x22dfb00]
mov dword [ebp - 0x410], edi
mov edi, dword [ebp - 0x400]
mov dword [edx + ecx*4 - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x404]
movsx edx, byte [esi]
cmp edx, 0x22
jne 0x6074fa
inc esi
test edi, edi
jne 0x6074e2
movsx edx, byte [esi]
cmp edx, 0x22
jne 0x60762e
inc esi
movsx edx, byte [esi]
cmp edx, 0x22
je 0x607661
mov edi, ecx
cmp edx, 0x20
jne 0x607507
jmp 0x607638
test edi, edi
jne 0x607510
cmp edx, 0x20
je 0x607638
cmp edx, 9
je 0x607638
mov byte [eax], dl
inc esi
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
cmp esi, ebx
jbe 0x6074c8
mov byte [eax], 0
inc dword [ebp - 0x404]
mov ebx, dword [0x7f68d4]
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 0x60757a
test ebx, 0x200
lea edx, [eax + 0x1000000]
jne 0x60757a
mov eax, edx
push 0x308001f
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.006c88e6
push ebx
mov eax, 1
push eax
push eax
call fcn.006069b0
add esp, 0x18
call fcn.00632540
call fcn.0061ae70
call fcn.006327c0
push str.FOR_FASTMEM_NORETRY
call fcn.0061ce10
add esp, 4
test eax, eax
je 0x6075c6
push 1
call fcn.005e1fd0
add esp, 4
push str.FOR_FASTMEM_RETRY_WARN
call fcn.0061ce10
add esp, 4
test eax, eax
je 0x6075e1
push 2
call fcn.005e1fd0
add esp, 4
push str.FOR_FASTMEM_RETRY
call fcn.0061ce10
add esp, 4
test eax, eax
je 0x6075fc
push 3
call fcn.005e1fd0
add esp, 4
call fcn.005e1ff0
mov dword [0x7f68cc], 1
xor eax, eax
mov dword [0x7f68c8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x6072ef
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, 1
jmp 0x607510
mov dword [ebp - 0x400], edi
mov edi, dword [ebp - 0x410]
mov byte [eax], 0
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
cmp esi, ebx
jbe 0x607447
jmp 0x60752d
cmp esi, ebx
ja 0x607682
inc esi
mov byte [eax], 0x22
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
movsx edx, byte [esi]
cmp edx, 0x22
jne 0x6074ee
inc esi
jmp 0x6074d5
inc esi
jmp 0x60743f
push 0x22dfb00
push 0
push 0x2c
call fcn.005e1480
add esp, 0xc
test eax, eax
jne 0x60752d
mov ecx, dword [0x22dfb00]
mov edi, 0xb
mov edx, dword [0x7f68d0]
mov dword [ecx], edx
mov eax, dword [ebp - 0x404]
mov ecx, dword [0x22dfafc]
jmp 0x6074aa
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x6072ef
push 0xdc3
push str.for_init.c
push str.to_ptr
call fcn.006c85ab
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x60739b
push fcn.0060b140
lea eax, [ebp + 0xc]
push eax
push ebx
call edx
add esp, 0xc
jmp 0x6070fe
cmp dword [ebp + 0xc], 0
jne 0x6070d9
jmp 0x6070fe
fstp qword [ebp - 0x420]
lea eax, [ebp - 0x420]
push eax
call fcn.00632a70
add esp, 4
fstp qword [0x7f68c0]
jmp 0x6070d1
test esi, esi
jmp 0x60717a