Function at 0x1001a25
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.01002820
mov eax, dword [0x10040c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 4
lea eax, [ebp - 0xc60]
push eax
push 0x22
push 0xffffffffffffffff
mov dword [ebp - 0xc60], edi
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov eax, dword [ebp + 8]
mov dword [0x10040e4], eax
mov eax, dword [sym.imp.msvcrt.dll___argc]
cmp dword [eax], edi
mov dword [ebp - 0xc34], esi
mov dword [ebp - 0xc30], esi
mov dword [ebp - 0xc3c], esi
mov dword [ebp - 0xc40], esi
mov dword [ebp - 0xc48], edi
mov dword [ebp - 0xc54], esi
mov dword [ebp - 0xc50], esi
mov dword [ebp - 0xc4c], 0x1004000
mov dword [ebp - 0xc38], str.DllRegisterServer
mov dword [ebp - 0xc2c], esi
mov dword [ebp - 0xc20], edi
jle 0x1002001
mov edi, 0x105
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc20]
mov ebx, dword [eax + ecx*4]
movzx eax, word [ebx]
mov dword [ebp - 0xc44], ebx
cmp ax, 0x2d
je 0x1001ca2
cmp ax, 0x2f
je 0x1001ca2
cmp ax, 0x22
jne 0x1001c68
lea eax, [ebx + 2]
push eax
mov dword [ebp - 0xc28], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
mov dword [ebp - 0xc24], eax
jg 0x1001f0a
push dword [ebp - 0xc28]
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 0xc24]
add esp, 0xc
cmp eax, esi
jle 0x1001bf2
cmp word [ebp + eax*2 - 0x212], 0x22
jmp 0x1001bd7
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc20]
push dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + ebx + 1]
cmp eax, 0x104
jg 0x1001f32
push 0x100131c
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc20]
push dword [eax + ecx*4]
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
cmp ebx, esi
jle 0x1001bd9
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc20]
mov eax, dword [eax + ecx*4]
cmp word [eax + ebx*2 - 2], 0x22
je 0x1001bf2
inc dword [ebp - 0xc20]
mov ecx, dword [ebp - 0xc20]
mov eax, dword [sym.imp.msvcrt.dll___argc]
cmp ecx, dword [eax]
jl 0x1001b57
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jle 0x1001c15
lea ecx, [ebp + eax*2 - 0x212]
cmp word [ecx], 0x22
jne 0x1001c15
xor edx, edx
mov word [ecx], dx
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc28], eax
cmp eax, esi
je 0x1001ecd
cmp dword [ebp - 0xc2c], 0xff
je 0x1001f67
lea ecx, [ebp - 0x210]
push ecx
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 0xc28]
mov ecx, dword [ebp - 0xc2c]
add esp, 0xc
mov dword [ebp + ecx*4 - 0x1060], eax
jmp 0x1001c97
cmp dword [ebp - 0xc2c], 0xff
je 0x1001f67
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x1001f75
mov eax, dword [ebp - 0xc2c]
mov dword [ebp + eax*4 - 0x1060], ebx
inc dword [ebp - 0xc2c]
jmp 0x1001ecd
movzx eax, word [ebx + 2]
cmp eax, 0x63
jg 0x1001cf4
je 0x1001ecd
sub eax, 0x43
je 0x1001ecd
dec eax
dec eax
je 0x1001ec3
sub eax, 4
je 0x1001d5f
sub eax, 5
je 0x1001d54
sub eax, 5
je 0x1001d45
dec eax
dec eax
je 0x1001d22
dec eax
je 0x1001d13
mov ebx, dword [ebp - 0xc44]
push esi
push ebx
push 2
call fcn.01001882
jmp 0x1001faa
sub eax, 0x65
je 0x1001ec3
sub eax, 4
je 0x1001d65
sub eax, 5
je 0x1001d54
sub eax, 5
je 0x1001d45
dec eax
dec eax
je 0x1001d22
dec eax
jne 0x1001ce6
mov dword [ebp - 0xc30], 1
jmp 0x1001ecd
mov dword [ebp - 0xc3c], 1
mov dword [ebp - 0xc4c], 0x1004060
mov dword [ebp - 0xc38], str.DllUnregisterServer
jmp 0x1001ecd
mov dword [0x10040e0], 1
jmp 0x1001ecd
mov dword [ebp - 0xc48], esi
jmp 0x1001ecd
mov ebx, dword [ebp - 0xc44]
cmp word [ebx + 4], 0x3a
mov dword [ebp - 0xc40], 1
jne 0x1001eac
lea eax, [ebx + 6]
cmp word [eax], 0x22
mov dword [ebp - 0xc28], eax
jne 0x1001e91
mov ebx, dword [ebp - 0xc44]
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x1001f75
cmp eax, esi
jle 0x1001dc1
lea eax, [ebx + eax*2 - 2]
cmp word [eax], 0x22
jne 0x1001dc1
xor ecx, ecx
mov word [eax], cx
push ebx
jmp 0x1001eb1
push ebx
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
jmp 0x1001e44
mov eax, dword [sym.imp.msvcrt.dll___wargv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc20]
mov ebx, dword [eax + ecx*4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xc24]
lea eax, [eax + ecx + 1]
cmp eax, 0x104
jg 0x1001fb2
mov eax, ecx
cmp eax, esi
jle 0x1001e21
cmp word [ebx + eax*2 - 2], 0x22
je 0x1001e5f
push 0x100131c
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
push ebx
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
inc dword [ebp - 0xc20]
mov ecx, dword [ebp - 0xc20]
mov eax, dword [sym.imp.msvcrt.dll___argc]
cmp ecx, dword [eax]
jl 0x1001dd4
jmp 0x1001ecd
mov ecx, dword [ebp - 0xc24]
xor eax, eax
push 0x100131c
mov word [ebx + ecx*2 - 2], ax
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
push ebx
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
jmp 0x1001ecd
push dword [ebp - 0xc28]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x1001f0a
push dword [ebp - 0xc28]
jmp 0x1001eb1
push 0x1001318
lea eax, [ebp - 0x41c]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
jmp 0x1001ecd
mov dword [ebp - 0xc54], 1
inc dword [ebp - 0xc20]
mov eax, dword [sym.imp.msvcrt.dll___argc]
mov ecx, dword [ebp - 0xc20]
cmp ecx, dword [eax]
jl 0x1001acd
cmp dword [ebp - 0xc48], esi
jne 0x1001fe8
cmp dword [ebp - 0xc40], esi
jne 0x1001fe8
push esi
push 1
push esi
push esi
push 0x10012d0
jmp 0x1001f71
push esi
push 0x400
lea eax, [ebp - 0xc1c]
push eax
push esi
push 0xce
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1001faa
add ebx, 6
jmp 0x1001f98
push esi
push 0x400
lea eax, [ebp - 0xc1c]
push eax
push esi
push 0xce
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1001faa
push esi
push esi
lea eax, [ebp - 0xc1c]
push esi
push eax
lea eax, [ebp - 0x210]
jmp 0x1001fe5
push esi
push 1
push esi
push esi
push 0x1001290
push 2
jmp 0x1001fa5
push esi
push 0x400
lea eax, [ebp - 0xc1c]
push eax
push esi
push 0xce
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1001faa
push esi
push esi
push esi
lea eax, [ebp - 0xc1c]
push eax
push ebx
push 7
call fcn.01001784
xor eax, eax
inc eax
jmp 0x10024a2
push esi
push 0x400
lea eax, [ebp - 0xc1c]
push eax
push esi
push 0xce
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1001faa
push esi
push esi
lea eax, [ebp - 0xc1c]
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
jmp 0x1001fa3
cmp dword [ebp - 0xc2c], esi
jne 0x100200b
cmp dword [ebp - 0xc30], esi
je 0x1002001
push esi
push esi
push esi
push esi
push esi
push 4
jmp 0x1001fa5
push esi
push 1
push esi
push esi
push esi
push 5
jmp 0x1001fa5
push esi
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jge 0x100202a
push esi
push esi
push esi
push esi
push esi
push 6
call fcn.01001784
push 2
pop eax
jmp 0x10024a2
cmp dword [0x10040e0], esi
je 0x100203a
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0xc24], esi
mov eax, dword [ebp - 0xc2c]
cmp dword [ebp - 0xc24], eax
jge 0x1002496
mov eax, dword [ebp - 0xc24]
mov eax, dword [ebp + eax*4 - 0x1060]
mov dword [ebp - 0xc20], eax
mov dword [ebp - 0xc64], eax
mov dword [ebp - 0xc30], eax
lea eax, [ebp - 0xc20]
push eax
call fcn.010018c6
mov dword [ebp - 0xc28], eax
cmp eax, 1
jne 0x10020e5
push 0x1001288
push 0x20
push dword [ebp - 0xc4c]
call sub.msvcrt.dll_strcat_s
push 0x1001280
push 0x20
push dword [ebp - 0xc38]
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
push esi
push esi
push 0x104
mov edi, 0x10040e8
push edi
push dword [ebp - 0xc30]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0xc30]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1002426
mov dword [ebp - 0xc30], edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [ebp - 0xc20]
push 8
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov dword [ebp - 0xc20], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0xc20], 0x20
jb 0x1002432
push dword [ebp - 0xc20]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, esi
je 0x1002151
mov ecx, 0x100
test word [eax + 0x5e], cx
je 0x1002151
push 4
lea eax, [ebp - 0xc58]
push eax
push 0x22
push 0xffffffffffffffff
mov dword [ebp - 0xc58], 0xd
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0xc3c], esi
jne 0x10021ed
cmp dword [ebp - 0xc48], esi
je 0x10021e5
cmp dword [ebp - 0xc28], esi
je 0x100219d
push 0x1001268
push dword [ebp - 0xc20]
call edi
cmp eax, esi
je 0x1002196
mov dword [ebp - 0xc5c], eax
mov dword [ebp - 0xc50], 1
jmp 0x10021ab
push 0x1001254
jmp 0x10021a3
push dword [ebp - 0xc4c]
push dword [ebp - 0xc20]
call edi
cmp eax, esi
je 0x100229e
cmp dword [ebp - 0xc50], esi
je 0x10021c9
push dword [ebp - 0xc64]
call dword [ebp - 0xc5c]
jmp 0x10021dd
cmp dword [ebp - 0xc28], esi
je 0x10021db
push dword [ebp - 0xc30]
call eax
jmp 0x10021dd
call eax
cmp eax, esi
jl 0x1002307
cmp dword [ebp - 0xc3c], esi
jne 0x1002233
cmp dword [ebp - 0xc40], esi
je 0x1002227
push 0x1001190
push dword [ebp - 0xc20]
call edi
cmp eax, esi
je 0x1002335
lea ecx, [ebp - 0x41c]
push ecx
xor ecx, ecx
cmp dword [ebp - 0xc3c], esi
sete cl
push ecx
call eax
cmp eax, esi
jl 0x10023a3
cmp dword [ebp - 0xc3c], esi
jne 0x1002163
cmp dword [ebp - 0xc54], esi
jne 0x100240f
cmp dword [ebp - 0xc48], esi
je 0x10023df
push dword [ebp - 0xc38]
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
cmp dword [ebp - 0xc40], esi
je 0x1002400
push 0x1001248
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
push 0x100119c
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
jmp 0x1002400
push 0x100
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
cmp dword [ebp - 0xc28], esi
jne 0x10022f9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x100123c
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x10022f9
push 0x1001230
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x10022f9
push esi
push esi
push esi
push dword [ebp - 0xc38]
jmp 0x1002382
push esi
push esi
push esi
push dword [ebp - 0xc38]
jmp 0x100238f
push eax
push 0x1001220
lea eax, [ebp - 0xc1c]
push 0x400
push eax
call sub.msvcrt.dll_swprintf_s
add esp, 0x10
push esi
push esi
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp - 0xc38]
jmp 0x10023cb
push 0x100
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
call sub.msvcrt.dll__wsplitpath_s
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
add esp, 0x24
push 0x100123c
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x1002387
push 0x1001230
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
je 0x1002387
push esi
push esi
push esi
push 0x100119c
push ebx
push 8
jmp 0x1002392
push esi
push esi
push esi
push 0x100119c
push ebx
push 9
call fcn.01001784
mov dword [ebp - 0xc34], 4
jmp 0x100240f
push eax
push 0x1001220
lea eax, [ebp - 0xc1c]
push 0x400
push eax
call sub.msvcrt.dll_swprintf_s
add esp, 0x10
push esi
push esi
lea eax, [ebp - 0xc1c]
push eax
push 0x100119c
push ebx
push 0xa
call fcn.01001784
mov dword [ebp - 0xc34], 5
jmp 0x100240f
cmp dword [ebp - 0xc40], esi
je 0x1002400
push 0x100119c
lea eax, [ebp - 0x210]
push 0x104
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push ebx
lea eax, [ebp - 0x210]
push eax
push 0xb
call fcn.010018a4
push dword [ebp - 0xc20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc dword [ebp - 0xc24]
jmp 0x1002040
push esi
push dword [ebp - 0xc44]
jmp 0x1001ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x100245b
push ebx
call fcn.01001465
cmp eax, 0xffffffff
je 0x1002452
mov dword [ebp - 0xc34], eax
jmp 0x1002496
push esi
push esi
push esi
push esi
push ebx
push 0xd
jmp 0x1002487
push esi
push 0x400
lea ecx, [ebp - 0xc1c]
push ecx
push esi
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x100248c
push esi
push esi
push esi
lea eax, [ebp - 0xc1c]
push eax
push ebx
push 7
call fcn.01001784
mov dword [ebp - 0xc34], 3
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0xc34]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010027d0
leave
ret 0x10