Function at 0x1003ec80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1007d5ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x2dc], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x2e4]
mov ebx, dword [esi]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x2dc], 4
mov dword [esp + 0xcc], ecx
call dword [0x10094100]
push eax
push ebx
lea ecx, [esp + 0xd4]
call fcn.1003b810
mov ecx, ebp
mov byte [esp + 0x2dc], 5
call fcn.1003e720
mov ecx, esi
call fcn.1000d0f0
mov ecx, eax
call fcn.1000cd40
mov edx, dword [esi]
cmp dword [edx - 0xc], edi
jne 0x1003edc2
mov eax, dword [ebp]
push eax
call fcn.1001f970
add esp, 4
test eax, eax
je 0x1003edc2
mov eax, dword [ebp]
push edi
push eax
call fcn.1001f970
add esp, 4
mov ecx, eax
call fcn.1002edd0
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
cmp eax, ecx
je 0x1003ed7c
push eax
call fcn.100688ea
add esp, 4
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003eda9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.1003cee0
jmp 0x1003f24c
mov eax, dword [esp + 0xcc]
cmp eax, edi
mov dword [esp + 0x28], 0xed80
mov esi, eax
je 0x1003edf7
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [esp + 0x20], eax
jne 0x1003edf7
push 0x8007000e
call fcn.10001330
lea eax, [esp + 0x20]
lea ecx, [ebp + 0x18]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
call fcn.1003ebf0
push edi
push 0xc9
call fcn.10001450
add esp, 8
cmp eax, edi
je 0x1003ee31
push 0xc9
push eax
lea ecx, [esp + 0x1c]
call fcn.10004800
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x1d0], ecx
call dword [0x10094100]
mov edx, dword [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x1d8]
call fcn.1003b810
mov eax, dword [esp + 0x1d0]
mov ecx, dword [esp + 0xcc]
push eax
push ecx
mov byte [esp + 0x2e4], 6
call fcn.1006b3b5
lea edx, [esp + 0x54]
add esp, 8
mov esi, eax
mov dword [esp + 0x48], edx
call dword [0x10094100]
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.1003b7a0
mov ebx, dword [esp + 0x48]
push edi
mov byte [esp + 0x2e0], 7
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebx, edi
je 0x1003ef14
call dword [0x10094100]
push edi
push edi
push 0xffffffffffffffff
push ebx
mov ebp, eax
push edi
push ebp
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x1003ef01
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1003ef01
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
call fcn.10001e90
mov ebp, dword [esp + 0x18]
xor eax, eax
xor edi, edi
jmp 0x1003ef16
lea ecx, [esp + 0x10]
call fcn.10001e90
mov ebp, dword [esp + 0x18]
mov eax, edi
xor edi, edi
jmp 0x1003ef16
xor eax, eax
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x1003ef2c
cmp ebx, edi
je 0x1003ef2c
push 0x8007000e
call fcn.10001330
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
mov byte [esp + 0x2dc], 6
je 0x1003ef49
push eax
call fcn.100688ea
add esp, 4
mov dword [esp + 0x1c], 0xed81
jmp 0x1003ef60
mov ebp, dword [esp + 0x18]
xor edi, edi
lea esp, [esp]
call dword [0x10094100]
push edi
push edi
push 0xffffffffffffffff
push 0x10081bf2
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [edi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x1003f196
push edi
push esi
push 0xffffffffffffffff
push 0x10081bf2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x1003f18f
test esi, esi
je 0x1003f196
mov edi, dword [esp + 0x10]
push 0
push 0x400
push esi
push edi
call sub.OLEAUT32.dll_VarR8Pow
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc bl
call esi
test bl, bl
sete al
test al, al
je 0x1003f1a5
lea ecx, [esp + 0x10]
call fcn.1003bf20
mov esi, dword [ebp + 0x1c]
cmp esi, dword [ebp + 0x20]
mov ebx, dword [esp + 0x10]
je 0x1003f024
lea esp, [esp]
mov edx, dword [esi]
push 0
push 0x400
push ebx
push edx
call sub.OLEAUT32.dll_VarR8Pow
cmp eax, 1
je 0x1003f01f
mov eax, dword [ebp + 0x20]
add esi, 0x24
cmp esi, eax
jne 0x1003f000
cmp esi, dword [ebp + 0x20]
jne 0x1003f082
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1003f067
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
jne 0x1003f048
xor eax, eax
jmp 0x1003f057
push ebx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test ebx, ebx
mov dword [esp + 0x20], eax
je 0x1003f067
test eax, eax
je 0x1003f196
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0x18]
call fcn.1003ebf0
mov ecx, dword [esp + 0x1d0]
push ecx
push 0
call fcn.1006b3b5
lea edx, [esp + 0x54]
add esp, 8
mov ebp, eax
mov dword [esp + 0x48], edx
call dword [0x10094100]
test ebp, ebp
mov dword [esp + 0x44], eax
jne 0x1003f0b2
mov dword [esp + 0x48], ebp
jmp 0x1003f0ff
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x80
jle 0x1003f0de
push edi
call fcn.100688d8
add esp, 4
test eax, eax
mov dword [esp + 0x48], eax
je 0x1003f196
jmp 0x1003f0e2
mov eax, dword [esp + 0x48]
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x54]
push esi
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1003f1a0
mov ebp, dword [esp + 0x48]
push ebx
mov byte [esp + 0x2e0], 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebp, ebp
je 0x1003f15b
call dword [0x10094100]
push 0
push 0
push 0xffffffffffffffff
push ebp
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x1003f15d
push esi
push edi
push 0xffffffffffffffff
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1003f15d
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
test edi, edi
mov dword [esp + 0x10], edi
jne 0x1003f169
test ebp, ebp
jne 0x1003f196
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
cmp eax, ecx
mov byte [esp + 0x2dc], 6
je 0x1003ef53
push eax
call fcn.100688ea
add esp, 4
jmp 0x1003ef53
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x8007000e
call fcn.10001330
call fcn.1003b6e0
mov eax, dword [ebp]
push eax
call fcn.1001f970
add esp, 4
test eax, eax
je 0x1003f1e6
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1003f1d2
mov ecx, dword [ebp + 0x20]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp]
push eax
push ecx
call fcn.1001f970
add esp, 4
mov ecx, eax
call fcn.1002edd0
mov eax, dword [esp + 0x1d0]
lea edx, [esp + 0x1d4]
cmp eax, edx
je 0x1003f201
push eax
call fcn.100688ea
add esp, 4
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
cmp eax, ecx
je 0x1003f21c
push eax
call fcn.100688ea
add esp, 4
push edi
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2dc], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003f245
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2d0
ret 4