Function at 0x49d910
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 [0x2dfe8c0]
mov edx, dword [0x543b10]
fucomp st(1)
fnstsw ax
xor edx, ebp
mov dword [ebp - 0x10], edx
sahf
mov ebx, dword [ebp + 8]
jp 0x49d93f
je 0x49df93
fstp st(0)
test ebx, ebx
je 0x49df84
push str.libicaf.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x49d96e
push str.for_rtl_ICAF_INIT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
jne 0x49df70
push 0x3e9
push 0
lea edi, [ebp - 0x3fc]
push edi
call fcn.004ca8b0
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 0x49d9a6
cmp esi, 0x3e8
jae 0x49d9a6
inc esi
jmp 0x49d9ad
mov byte [ebp - 0x3fc], 0
call fcn.004e2c5f
xor ebx, ebx
test esi, esi
mov eax, dword [eax]
sete bl
or eax, ebx
je 0x49d9f9
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 0x49d9ea
cmp esi, 0x3e8
jae 0x49dfb3
xor ebx, ebx
inc esi
sete bl
jmp 0x49d9f9
mov ebx, 0
mov byte [ebp - 0x3fc], 0
sete bl
call fcn.004e2c5f
or ebx, dword [eax]
je 0x49da2b
push 0x3e8
push edi
push str.PIN_CRT_TZDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jbe 0x49da24
cmp esi, 0x3e8
jae 0x49da24
inc esi
jmp 0x49da2b
mov byte [ebp - 0x3fc], 0
call fcn.004e2c5f
cmp dword [eax], 0
mov eax, 0
sete al
test eax, esi
je 0x49db29
xor eax, eax
lea edx, [ebp - 0x40c]
push eax
push eax
push edx
call fcn.004e2d4d
xor eax, eax
push eax
push eax
push eax
call fcn.0049d220
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, 0x2dfe8d4
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 0x49daf7
test ebx, 0x200
lea edx, [esi + 0x1000000]
jne 0x49daf7
mov esi, edx
xor edx, edx
lea ecx, [ebp - 0x408]
push edx
push edx
push ecx
call fcn.004e2d4d
push 0x308001f
push esi
lea edx, [ebp - 0x418]
push edx
call fcn.004e2d4d
push ebx
mov eax, 1
push eax
push eax
call fcn.0049d220
add esp, 0x24
call fcn.00455c50
push 0x2dfe8c8
call fcn.00455af0
add esp, 4
mov eax, dword [0x2dfe8cc]
test eax, eax
je 0x49db64
xor eax, eax
mov dword [0x2dfe8c8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
xor ecx, ebp
cmp ecx, dword [0x543b10]
je 0x49de96
call fcn.004cf95b
lea eax, [ebp - 0x414]
push eax
push 0
push 0xc
call fcn.004875a0
add esp, 0xc
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x49db8d
mov dword [0x6a47e68], 0
jmp 0x49dbbc
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x414]
push 0x49bf00
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x414]
mov dword [ecx], edx
mov ebx, dword [ebp - 0x414]
mov dword [0x6a47e68], ebx
call fcn.004cfba5
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.FOR_DISABLE_CONSOLE_CTRL_HANDLER
call fcn.00487460
add esp, 4
test eax, eax
jne 0x49dbe2
push 1
push 0x49c090
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x4a97a0
call fcn.004cf400
push 0x4a97d0
call fcn.004cf400
push str.FOR_NOERROR_DIALOGS
call fcn.00487460
add esp, 0xc
test eax, eax
jne 0x49df60
call fcn.004e2e53
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.004cf400
add esp, 4
mov dword [0x6a47e60], 0
mov dword [0x6a47e64], 0x2dfe8d0
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 0x49dc54
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x49dc3f
dec eax
mov edx, eax
lea eax, [ebp - 0x404]
push eax
push 0
inc edx
push edx
call fcn.004875a0
add esp, 0xc
mov ebx, dword [ebp - 0x404]
test ebx, ebx
je 0x49df3b
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x49dc90
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x49dc7b
dec eax
lea eax, [esi + eax - 1]
cmp esi, eax
ja 0x49dd9d
xor edx, edx
mov edi, 1
mov dword [ebp - 0x400], edx
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp esi, ebx
ja 0x49dd9d
movsx edx, byte [esi]
cmp edx, 0x20
je 0x49def8
cmp edx, 9
je 0x49def8
mov ecx, dword [0x6a47e60]
inc ecx
mov dword [0x6a47e60], ecx
cmp ecx, edi
jle 0x49dd1a
cmp edi, 1
je 0x49defe
add edi, 0xa
lea edx, [edi*4 - 0x28]
push edx
push 0x6a47e64
lea ecx, [edi*4]
push ecx
call fcn.004875f0
add esp, 0xc
test eax, eax
jne 0x49dd9d
mov eax, dword [ebp - 0x404]
mov ecx, dword [0x6a47e60]
mov edx, dword [0x6a47e64]
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 0x49dd6a
inc esi
test edi, edi
jne 0x49dd52
movsx edx, byte [esi]
cmp edx, 0x22
jne 0x49de9e
inc esi
movsx edx, byte [esi]
cmp edx, 0x22
je 0x49ded1
mov edi, ecx
cmp edx, 0x20
jne 0x49dd77
jmp 0x49dea8
test edi, edi
jne 0x49dd80
cmp edx, 0x20
je 0x49dea8
cmp edx, 9
je 0x49dea8
mov byte [eax], dl
inc esi
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
cmp esi, ebx
jbe 0x49dd38
mov byte [eax], 0
inc dword [ebp - 0x404]
mov ebx, dword [0x2dfe8d4]
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 0x49ddea
test ebx, 0x200
lea edx, [eax + 0x1000000]
jne 0x49ddea
mov eax, edx
push 0x308001f
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004e2d4d
push ebx
mov eax, 1
push eax
push eax
call fcn.0049d220
add esp, 0x18
call fcn.004a98c0
call fcn.00486a00
call fcn.004a9b40
push str.FOR_FASTMEM_NORETRY
call fcn.00487460
add esp, 4
test eax, eax
je 0x49de36
push 1
call fcn.00487680
add esp, 4
push str.FOR_FASTMEM_RETRY_WARN
call fcn.00487460
add esp, 4
test eax, eax
je 0x49de51
push 2
call fcn.00487680
add esp, 4
push str.FOR_FASTMEM_RETRY
call fcn.00487460
add esp, 4
test eax, eax
je 0x49de6c
push 3
call fcn.00487680
add esp, 4
call fcn.004876a0
mov dword [0x2dfe8cc], 1
xor eax, eax
mov dword [0x2dfe8c8], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x49db5f
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, 1
jmp 0x49dd80
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 0x49dcb7
jmp 0x49dd9d
cmp esi, ebx
ja 0x49def2
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 0x49dd5e
inc esi
jmp 0x49dd45
inc esi
jmp 0x49dcaf
push 0x6a47e64
push 0
push 0x2c
call fcn.004875a0
add esp, 0xc
test eax, eax
jne 0x49dd9d
mov ecx, dword [0x6a47e64]
mov edi, 0xb
mov edx, dword [0x2dfe8d0]
mov dword [ecx], edx
mov eax, dword [ebp - 0x404]
mov ecx, dword [0x6a47e60]
jmp 0x49dd1a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x49db5f
push 0xdc2
push str.for_init.c
push str.to_ptr
call fcn.004d61ea
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x49dc0b
push fcn.00480060
lea eax, [ebp + 0xc]
push eax
push ebx
call edx
add esp, 0xc
jmp 0x49d96e
cmp dword [ebp + 0xc], 0
jne 0x49d949
jmp 0x49d96e
fstp qword [ebp - 0x420]
lea eax, [ebp - 0x420]
push eax
call fcn.004a9d80
add esp, 4
fstp qword [0x2dfe8c0]
jmp 0x49d941
test esi, esi
jmp 0x49d9ea