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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
and eax, 0x3ff
cmp ax, 0x11
je 0x1003986
cmp ax, 0x12
je 0x1003986
cmp ax, 4
je 0x1003986
sub dword [0x10050c0], 2
xor esi, esi
mov dword [0x1005314], edi
inc esi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x100383b
mov dword [ebp - 8], esi
push 0x7b
pop ecx
mov ebx, 0x10057e0
xor eax, eax
push 0x1005308
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x208
mov edi, 0x10053c0
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01003328
test eax, eax
je 0x1003b04
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call fcn.0100226a
cmp eax, 5
mov dword [0x10059f0], eax
je 0x1003b04
push 9
call fcn.01003c10
push 0xa
mov dword [0x10059e0], eax
call fcn.01003c10
push 0xb
mov dword [0x10059e4], eax
call fcn.01003c10
add esp, 0xc
mov dword [0x10059e8], eax
xor ebx, ebx
mov eax, 0x100583c
cmp dword [eax], 0
je 0x10038c4
add eax, 0x14
inc ebx
cmp eax, 0x10059cc
jl 0x10038b4
mov eax, dword [0x10059e0]
lea esi, [ebx + ebx*4]
shl esi, 2
push eax
mov dword [esi + 0x1005848], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x100584c], eax
mov eax, dword [0x10059e4]
mov dword [esi + 0x100583c], 3
mov dword [esi + 0x1005840], 0x10
lea ebx, [ebx + ebx*4]
shl ebx, 2
push 5
pop ecx
lea esi, [ebx + 0x1005828]
lea edi, [ebx + 0x100583c]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebx + 0x1005848], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebx + 0x100584c], eax
mov ebx, dword [ebp - 4]
mov eax, dword [0x10059e8]
inc ebx
mov dword [ebp - 4], ebx
lea ebx, [ebx + ebx*4]
shl ebx, 2
push 5
pop ecx
lea esi, [ebx + 0x1005828]
lea edi, [ebx + 0x100583c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebx + 0x1005848], eax
call edi
mov dword [ebx + 0x100584c], eax
mov dword [ebx + 0x1005844], 1
xor ebx, ebx
cmp dword [0x1005314], ebx
je 0x1003994
mov al, byte [0x10057f7]
cmp al, 2
jbe 0x10039bd
cmp al, 0xff
je 0x10039bd
push 0xd
jmp 0x10039c3
xor esi, esi
inc esi
mov dword [0x1005314], esi
jmp 0x100382d
push 0x10057e0
call fcn.010013f5
test eax, eax
je 0x10039c1
push 2
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
mov al, byte [ebp - 0x48]
mov byte [0x10057f7], al
push 0xc
jmp 0x10039c3
push 0x10
call fcn.01003c10
mov dword [0x10059d8], eax
mov eax, dword [ebp - 4]
inc eax
cmp eax, 0x14
pop ecx
jge 0x1003a18
lea esi, [eax + eax*4]
lea esi, [esi*4 + 0x100583c]
cmp ebx, 0x1c
jae 0x1003a16
cmp dword [esi], 0
jne 0x1003a0b
mov eax, dword [0x10059d8]
push eax
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x1005020]
mov dword [esi], 5
mov dword [esi + 4], eax
add ebx, 4
add esi, 0x14
cmp esi, 0x10059cc
jl 0x10039e1
xor ebx, ebx
call fcn.01002001
cmp dword [ebp + 0xc], ebx
jne 0x1003a31
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0100371f
test eax, eax
je 0x1003a46
push dword [0x1005848]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.010014bb
test eax, eax
jne 0x1003a4b
mov dword [ebp - 0x20], ebx
jmp 0x1003a99
push 0x10012b0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
jmp 0x1003a8c
lea eax, [ebp - 0x28]
push eax
push edi
push dword [0x1005300]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1003a8c
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
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
jne 0x1003a63
cmp dword [0x10050c0], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
jle 0x1003ad0
mov esi, 0x100505c
mov eax, dword [esi]
cmp eax, ebx
je 0x1003abf
cmp eax, 0x10052d0
je 0x1003abf
push eax
call edi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x20
cmp eax, dword [0x10050c0]
jl 0x1003aaf
cmp dword [0x1005314], ebx
je 0x1003ae4
mov eax, dword [0x10059d4]
cmp eax, ebx
je 0x1003ae4
push eax
call edi
push 0x10053c0
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
cmp dword [ebp - 8], ebx
je 0x1003afa
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
push esi
xor edi, edi
push edi
push 0x10
push edi
push 2
push edi
call fcn.01003b2f
add esp, 0x1c
cmp dword [ebp - 8], edi
je 0x1003b22
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]