Function at 0x100390b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x1003935
mov dword [ebp - 8], esi
push edi
push 0x1ec
push ebx
mov esi, 0x1006d40
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1006308
push 0x104
push 0x1006700
push 0x208
mov edi, 0x1006920
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0100342e
test eax, eax
je 0x1003b97
lea eax, [ebp - 0xc]
push eax
push esi
push edi
call fcn.010023ad
cmp eax, 5
mov dword [0x1006f4c], eax
je 0x1003b97
cmp dword [0x1006314], ebx
je 0x100399e
cmp eax, 1
jne 0x10039a8
mov dword [0x10060a8], 2
push 9
call fcn.01003c97
push 0xa
mov dword [0x1006f40], eax
call fcn.01003c97
pop ecx
mov dword [0x1006f44], eax
pop ecx
xor edi, edi
mov eax, 0x1006d9c
cmp dword [eax], ebx
je 0x10039da
add eax, 0x14
inc edi
cmp eax, 0x1006f2c
jl 0x10039c9
jmp 0x1003a53
mov eax, dword [0x1006f40]
mov esi, edi
imul esi, esi, 0x14
push eax
mov dword [esi + 0x1006da8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0x1006dac], eax
lea eax, [edi + 1]
cmp eax, 0x14
mov dword [esi + 0x1006d9c], 3
mov dword [esi + 0x1006da0], 0x10
jge 0x1003a53
mov ebx, eax
imul ebx, ebx, 0x14
push 5
mov dword [ebp - 4], eax
mov eax, dword [0x1006f44]
pop ecx
lea esi, [ebx + 0x1006d88]
lea edi, [ebx + 0x1006d9c]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebx + 0x1006da8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 4]
mov dword [ebx + 0x1006dac], eax
mov dword [ebx + 0x1006da4], 1
xor ebx, ebx
push 0xb
call fcn.01003c97
inc edi
cmp edi, 0x14
pop ecx
mov dword [0x1006f38], eax
jge 0x1003aab
imul edi, edi, 0x14
add edi, 0x1006d9c
mov esi, edi
xor edi, edi
cmp edi, 0x1c
jae 0x1003aab
cmp dword [esi], ebx
jne 0x1003aa0
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x1006008]
mov dword [esi + 4], eax
mov eax, dword [0x1006f38]
mov dword [esi], 5
add edi, 4
add esi, 0x14
cmp esi, 0x1006f2c
jl 0x1003a73
call fcn.01002134
cmp dword [ebp + 0xc], ebx
jne 0x1003ac9
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0100384a
test eax, eax
jne 0x1003ac9
mov dword [ebp - 0x20], ebx
jmp 0x1003b2c
push dword [0x1006da8]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0100146b
test eax, eax
je 0x1003ac4
push 0x10012f4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
jmp 0x1003b1f
lea eax, [ebp - 0x28]
push eax
push edi
push dword [0x1006300]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1003b1f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x1003af6
cmp dword [0x10060a8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
jle 0x1003b63
mov esi, 0x1006044
mov eax, dword [esi]
cmp eax, ebx
je 0x1003b52
cmp eax, 0x10062d0
je 0x1003b52
push eax
call edi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x20
cmp eax, dword [0x10060a8]
jl 0x1003b42
cmp dword [0x1006314], ebx
je 0x1003b77
mov eax, dword [0x1006f34]
cmp eax, ebx
je 0x1003b77
push eax
call edi
push 0x1006920
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
cmp dword [ebp - 8], ebx
pop edi
je 0x1003b8e
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x20]
pop esi
pop ebx
leave
ret 0x10
push edi
push 1
push ebx
push 0x10
push ebx
push 2
push ebx
call fcn.01003bc2
add esp, 0x1c
cmp dword [ebp - 8], ebx
je 0x1003bb4
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]