Function at 0x405710
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x3c
mov eax, dword [0x435070]
xor eax, esp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call fcn.00403790
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, 8
jb 0x405743
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.00404600
push ebx
push str.HBuilderX.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x405795
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary_HBuilderX_faild_:
push 0x4360a8
call fcn.004010d0
add esp, 8
mov ecx, eax
call fcn.00402010
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040825a
add esp, 0x3c
ret 0x10
push str.main
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4057e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_from_HBuilderX_faild_:
push 0x4360a8
call fcn.004010d0
add esp, 8
mov ecx, eax
call fcn.00402010
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040825a
add esp, 0x3c
ret 0x10
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x405818
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040825a
add esp, 0x3c
ret 0x10
mov eax, dword [esp + 8]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407da8
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
jle 0x4058c5
mov eax, esi
mov dword [esp + 0x18], ebp
sub eax, ebp
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.00407da8
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jl 0x405860
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push esi
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call dword [esp + 0x34]
add esp, 8
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x405909
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x405909
push ecx
call fcn.00407db1
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jl 0x4058f1
push ebp
call fcn.00407db1
mov ecx, dword [esp + 0x4c]
add esp, 4
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.0040825a
add esp, 0x3c
ret 0x10