Function at 0x401870
Capabilities:
Accept command line arguments
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x401886
mov dword [ebx], 0
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
jne 0x40190e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x401ab8
cmp byte [esi], 0
je 0x401ab8
push 0x401
push edi
call dword [sym.imp.MSVCR120.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x401ab8
cmp byte [esi], 0x22
jne 0x4018ce
inc esi
push 0x462b90
jmp 0x4018d3
push 0x462b94
push esi
call dword [sym.imp.MSVCR120.dll_strcspn]
add esp, 8
mov dword [ebp + 0xc], eax
push eax
push esi
push edi
call dword [sym.imp.MSVCR120.dll_strncpy]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0
mov byte [eax + edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x400
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, edi
mov byte [eax + edi], 0
xor eax, eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov byte [ebp + 0xf], 1
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4019fe
lea ecx, [eax + 1]
push ecx
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4019f9
push str.VarFileInfoTranslation
push 0x493ba0
call dword [sym.imp.MSVCR120.dll_sprintf]
mov esi, dword [ebp - 8]
lea eax, [ebp + 8]
add esp, 8
push eax
lea eax, [ebp - 4]
push eax
push 0x493ba0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4019c2
cmp dword [ebp + 8], 4
jne 0x4019c2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
push eax
mov eax, ecx
shr eax, 0x18
push eax
movzx eax, cl
push eax
mov eax, dword [sym.imp.MSVCR120.dll_sprintf]
shr ecx, 8
and ecx, 0xff
push ecx
push str.StringFileInfo_02X_02X_02X_02XFileVersion
push 0x493ba0
call eax
add esp, 0x18
jmp 0x4019e0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
mov eax, dword [sym.imp.MSVCR120.dll_sprintf]
push str.StringFileInfo_04X04B0FileVersion
push 0x493ba0
call eax
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x493ba0
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401a04
jmp 0x401a00
mov esi, dword [ebp - 8]
jmp 0x401a00
xor esi, esi
mov byte [ebp + 0xf], 0
push edi
mov edi, dword [sym.imp.MSVCR120.dll_free]
call edi
add esp, 4
cmp byte [ebp + 0xf], 0
je 0x401ab2
cmp dword [ebp + 8], 0x100
jae 0x401a3f
mov ecx, dword [ebp - 4]
mov edx, 0x493ba0
sub edx, ecx
lea ecx, [ecx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401a30
jmp 0x401a5c
push 0xfa
push dword [ebp - 4]
push 0x493ba0
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0xc
mov byte [0x493c9a], 0
push esi
call edi
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], 0
push eax
push str._hu._hu._hu._hu
push 0x493ba0
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0x1c
test ebx, ebx
je 0x401aa8
mov dword [ebx], 0x493ba0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret