Function at 0x10005840
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad91c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4d8
mov eax, dword [0x100e6008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4cc], esi
push 1
mov dword [ebp - 0x4d4], 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x10005cf2
cmp dword [ebp - 0x4c8], 2
jl 0x10005cf2
mov edx, dword [edi + 4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x4c4], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100058e0
sub ecx, dword [ebp - 0x4c4]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0xdc]
call fcn.10006df0
cmp dword [ebp - 0x4c8], 3
jl 0x10005a01
push dword [edi + 8]
lea ecx, [ebp - 0x478]
call fcn.10006a90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x460]
call fcn.10006af0
mov byte [ebp - 4], 1
mov edx, 4
lea ecx, [ebp - 0x460]
call fcn.100181a0
lea ecx, [ebp - 0x460]
call fcn.10017760
test al, al
je 0x100059e0
push 0x412
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x430]
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
push 0x208
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x100059d1
cmp eax, dword [ebp - 0x450]
je 0x100059d1
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100059b0
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x44]
call fcn.10006df0
jmp 0x100059e0
lea eax, [ebp - 0x460]
push eax
lea ecx, [esi + 0x44]
call fcn.100069b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x460]
call fcn.10006d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.10006d80
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0x58
push edi
call esi
push 0x5a
push edi
mov dword [0x100e61dc], eax
call esi
push edi
push 0
mov dword [0x100e61d4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x100e61dc]
cmp eax, 0x60
sete byte [0x100e617a]
movd xmm0, eax
lea eax, [ebp - 0x460]
cvtdq2ps xmm0, xmm0
push eax
divss xmm0, dword [0x100cc8b8]
movss dword [0x100e61d8], xmm0
call fcn.10023a50
add esp, 4
mov dword [ebp - 4], 2
xor eax, eax
push 4
mov dword [ebp - 0x480], 0
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x47c], 0
push str.Hdpi
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
call fcn.10006df0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x490]
push eax
lea edx, [ebp - 0x460]
lea ecx, [ebp - 0x4c0]
call fcn.10018350
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x490]
call fcn.10006d80
xor eax, eax
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov byte [ebp - 4], 6
mov dword [0x100e61dc], 0x60
mov dword [0x100e61d4], 0x60
mov dword [0x100e61d8], 0x3f800000
mov byte [0x100e617a], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x478]
call fcn.10006d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c0]
call fcn.10006d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x460]
call fcn.10006d80
lea eax, [ebp - 0x448]
push eax
call fcn.10023a50
add esp, 4
mov dword [ebp - 4], 8
mov dword [ebp - 0x498], 0
push 0xd
xor eax, eax
mov dword [ebp - 0x494], 0
push str.2345Image.dll
lea ecx, [ebp - 0x4a8]
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
call fcn.10006df0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4a8]
push eax
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x4c0]
call fcn.10018350
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x448]
cmp eax, esi
je 0x10005c25
mov ecx, eax
call fcn.10006d80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x448], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x438], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c0]
call fcn.10006d80
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4a8]
call fcn.10006d80
cmp dword [ebp - 0x434], 8
lea esi, [ebp - 0x448]
mov eax, dword [0x100e8190]
cmovae esi, dword [ebp - 0x448]
test eax, eax
jne 0x10005c7c
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.CheckSigner
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100e8190], eax
test eax, eax
je 0x10005ce0
push 1
push 0
push esi
call eax
add esp, 0xc
test al, al
je 0x10005ce0
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push 8
cmovae eax, dword [ebp - 0x448]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10005d14
mov esi, dword [ebp - 0x4cc]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x10005cc6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xa8], edi
test edi, edi
je 0x10005ce0
push str.CreateImageFactory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10005d14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.10006d80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ab466
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.10006d80
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x10000000
push 0x100e7cec
call edi
mov esi, dword [0x100e7cec]
call fcn.10007450
push esi
push 0x100e78c4
call edi
mov edi, dword [ebp - 0x4cc]
call fcn.10007450
mov esi, eax
mov byte [ebp - 0x4d8], 0
mov eax, dword [0x100e7cd0]
add eax, 0x10
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 4], 0xc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x4d8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [esi + 0x34]
push 4
mov dword [ebp - 0x4c4], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x10005e0c
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x10005e0c
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x4c8], eax
lea ecx, [eax*4]
mov eax, dword [esi]
add eax, ecx
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 0xe
je 0x10005deb
mov edx, dword [ebp - 0x4c4]
mov dword [eax], edx
mov byte [ebp - 4], 0xc
mov eax, dword [esi + 4]
add eax, ecx
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 0xf
je 0x10005e05
lea ecx, [edi + 8]
mov dword [eax], ecx
mov byte [ebp - 4], 0xc
inc dword [esi + 8]
push dword [ebp - 0x4dc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x4d8], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jne 0x10005e7d
mov eax, dword [edi + 0xc]
lea esi, [ebp - 0x4e0]
cmp esi, eax
jb 0x10005e4b
lea eax, [eax + edx*4]
cmp esi, eax
jb 0x10006042
mov eax, dword [edi + 0xc]
test edx, edx
jne 0x10005e54
lea esi, [edx + 1]
jmp 0x10005e63
lea esi, [ecx + ecx]
test esi, esi
js 0x10005ea6
cmp esi, 0x1fffffff
ja 0x10005ea6
push 4
push esi
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x10005ea6
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x14], esi
mov dword [edi + 0xc], eax
mov dword [ebp - 0x4c4], ecx
mov eax, dword [edi + 0xc]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x10005e9c
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
inc dword [edi + 0x10]
mov ecx, dword [edi + 0x1c]
lea eax, [edi + 4]
mov esi, edi
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [edi + 0x20]
cmp ecx, eax
jne 0x10005f2d
mov edx, dword [edi + 0x18]
lea edi, [ebp - 0x4e4]
cmp edi, edx
mov edi, dword [ebp - 0x4cc]
jb 0x10005ee8
lea edi, [ebp - 0x4e4]
lea eax, [edx + eax*4]
cmp edi, eax
mov edi, dword [ebp - 0x4cc]
jb 0x1000604c
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x10005ef9
mov eax, 1
mov dword [ebp - 0x4c8], eax
jmp 0x10005f0d
lea eax, [ecx + ecx]
mov dword [ebp - 0x4c8], eax
test eax, eax
js 0x10005f56
cmp eax, 0x1fffffff
ja 0x10005f56
push 4
push eax
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x10005f56
mov ecx, dword [ebp - 0x4c8]
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x18], eax
mov dword [ebp - 0x4c4], ecx
mov eax, dword [edi + 0x18]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 4], 0x12
test eax, eax
je 0x10005f4c
mov dword [eax], esi
mov dword [ebp - 4], 0xffffffff
inc dword [edi + 0x1c]
push ecx
mov ecx, edi
call fcn.10006060
test al, al
je 0x10005cf2
call fcn.1002d6e0
cmp dword [eax + 0x18], 0
lea esi, [eax + 0x18]
jne 0x1000603b
lea edx, [eax + 0xd4]
xor cl, cl
xchg byte [edx], cl
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 4], 0x13
push 0x14
call fcn.100ab685
add esp, 4
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4c4]
push ecx
push 0x1002dc10
mov ecx, eax
call fcn.1002ee50
mov byte [ebp - 4], 0x13
lea edx, [eax + 0xc]
mov dword [ebp - 0x4cc], 0
mov ecx, esi
mov dword [ebp - 0x4cc], eax
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x4d0], 0
push eax
mov dword [ebp - 0x4d4], 1
mov dword [ebp - 0x4d0], edx
call fcn.1002e800
mov eax, 1
mov dword [ebp - 0x4d4], eax
and eax, 0xfffffffe
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x4cc]
test esi, esi
je 0x1000603b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1000603b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1000603b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, 1
jmp 0x10005cf4
push 0x80004005
call fcn.10002130
push 0x80004005
call fcn.10002130
int3