Function at 0x10015140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x100a20a4]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], 0
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
cmp dword [esi + 0x11a0], edi
je 0x100151af
test byte [ebx + 0xd4], 1
je 0x100151af
cmp dword [edx + 0x38], edi
jge 0x100151af
lea eax, [edi + 1]
jmp 0x100151b1
xor eax, eax
test byte [esi + 0x8c], 2
mov dword [esp + 0x38], eax
jne 0x10015e26
and dword [esi + 0x118], 0xfffeffff
test dword [ebx + 0x2c], 0x400
je 0x100152a5
test eax, eax
jne 0x100152a5
mov eax, dword [edx]
mov dword [esp + 0xc0], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc8], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xd0], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0xd8], eax
lea eax, [esp + 0xc0]
push eax
push dword [esi + 0x684]
mov dword [esp + 0xe4], edi
mov edi, dword [esi + 0x76c]
mov ecx, edi
call dword [0x100a8504]
call edi
cmp dword [0x100a352c], 0
mov dword [ebx + 0xd8], eax
jne 0x1001527b
cmp eax, 0x88760870
je 0x1001527b
test eax, eax
jns 0x10015e48
test byte [esi + 0x8c], 2
je 0x10015e48
jmp 0x10015282
mov ecx, esi
call fcn.10016960
lea eax, [esp + 0xc0]
push eax
push dword [esi + 0x684]
mov esi, dword [esi + 0x76c]
mov ecx, esi
call dword [0x100a8504]
call esi
jmp 0x10015e42
cmp dword [ebx + 0x98], edi
je 0x10015d32
cmp edx, dword [esi + 0xb8]
je 0x100152c1
test eax, eax
je 0x10015d32
mov ecx, dword [ecx + 0x20]
mov dword [ebx + 0xd8], 0x80004005
cmp dword [esi + 0xb20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], 1
je 0x10015301
test byte [ebx + 0x2c], 1
jne 0x10015309
test eax, eax
je 0x10015550
xor eax, eax
jmp 0x10015310
cmp dword [eax*8 + 0x10005154], ecx
je 0x10015323
inc eax
cmp eax, 0x5f
jb 0x10015310
xor eax, eax
jmp 0x1001532a
mov eax, dword [eax*8 + 0x10005150]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
mov dword [esi + 0x1158], 0
lea eax, [esp + 0x38]
push eax
mov dword [esi + 0x115c], 0
lea eax, [esp + 0x48]
mov edi, dword [ebx + 0x2c]
and edi, 2
push eax
or edi, 0x20
shr edi, 1
push edi
push 0
push dword [esi + 0xb38]
mov dword [esp + 0x60], edi
push dword [esi + 0xb34]
push dword [ebx + 0x98]
call dword [sym.imp.dwmapi.dll_Ordinal_100]
mov edx, eax
mov dword [esp + 0x20], edx
test edx, edx
jns 0x10015458
mov edi, dword [esi + 0xb24]
mov dword [esi + 0xb20], 0
mov dword [esi + 0xb28], 0
test edi, edi
je 0x100153c5
mov edx, edi
mov ecx, esi
call fcn.10013530
test edi, edi
je 0x100153bb
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0xb24], 0
lea edi, [esi + 0x54]
lea ecx, [esi + 0xc]
mov edx, edi
call fcn.1001e9c0
test eax, eax
jns 0x100153f3
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x20]
cmp edx, 0x263005
je 0x1001540b
cmp edx, 0x263008
jne 0x1001554c
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
cmp edx, 0x263008
jne 0x10015550
mov dword [esp + 0x44], 1
mov dword [esp + 0x34], 0
jmp 0x10015550
mov ecx, dword [esp + 0x40]
xor eax, eax
mov edi, edi
cmp dword [eax*8 + 0x10005150], ecx
je 0x10015479
inc eax
cmp eax, 0x5f
jb 0x10015460
mov dword [esp + 0x1c], 0
jmp 0x10015484
mov eax, dword [eax*8 + 0x10005154]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x34], 0
jne 0x100153f7
cmp edx, 0x263008
je 0x100153f7
mov dword [ebx + 0xd8], 0
mov edi, dword [esp + 0x10]
cmp dword [0x100a352c], 0
jne 0x100154be
cmp dword [ebx + 0xd8], 0x88760870
jne 0x100154c5
mov ecx, esi
call fcn.10016960
mov eax, dword [esi + 0x8c]
test al, 2
jne 0x10015e22
test edi, edi
je 0x100154f7
cmp dword [ebx + 0xd8], 0
jne 0x100154f7
or eax, 8
mov ecx, esi
mov dword [esi + 0x8c], eax
call fcn.1000ef60
and dword [esi + 0x8c], 0xfffffff7
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov edx, dword [esp + 0x2c]
or eax, edx
je 0x1001553d
xor eax, eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
lea eax, [esp + 0x118]
push eax
push 0
push 0
push edx
push ecx
push dword [ebx + 0x98]
call dword [sym.imp.dwmapi.dll_Ordinal_101]
mov dword [esi + 0x118], 0
jmp 0x10015e48
mov eax, dword [esp + 0x38]
cmp dword [esi + 0xb20], 0
je 0x1001555f
test byte [ebx + 0x2c], 1
jne 0x10015567
test eax, eax
je 0x1001599f
push 0x38
lea eax, [esp + 0xe4]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x128], 0x3c
lea eax, [esp + 0x128]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_GetWindowInfo]
test eax, eax
je 0x10015d12
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0xb28]
je 0x100155e0
mov edi, dword [esi + 0xb24]
test edi, edi
je 0x100155da
mov edx, edi
mov ecx, esi
call fcn.10013530
test edi, edi
je 0x100155cc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x34]
mov dword [esi + 0xb24], 0
mov dword [esi + 0xb28], eax
cmp dword [esp + 0x44], 0
je 0x100155f4
mov dword [esp + 0x14], 0
jmp 0x10015700
mov edi, dword [esi + 0xb24]
test edi, edi
jne 0x100156fc
push 0x5c
push 0x40
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc4], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10015d03
mov eax, dword [esp + 0x24]
mov edx, edi
mov ecx, dword [esi + 0xb28]
or eax, 0x10881
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x8c]
mov dword [edi + 0x10], ecx
mov ecx, esi
push 1
push eax
mov dword [esp + 0xc0], edi
mov dword [esp + 0xac], 1
mov dword [esp + 0xa8], 1
mov dword [esp + 0x98], 2
call fcn.10013be0
add esp, 0xc
mov dword [ebx + 0xd8], eax
cmp eax, 0x80070057
je 0x10015ced
test eax, eax
js 0x10015cf7
mov eax, dword [esp + 0xb4]
mov dword [edi], eax
mov eax, dword [esp + 0xb8]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [edi + 4], 0
mov dword [edi + 0x3c], esi
mov dword [edi + 0x1c], eax
mov dword [esi + 0xb24], edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100159a3
mov eax, dword [ebx + 0x1c]
mov edi, dword [esp + 0x144]
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x13c]
sub edi, ecx
mov dword [esp + 0xe8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xec], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xf0], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x140]
sub edx, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x40], 0
cmp edi, eax
jle 0x10015771
mov edi, eax
mov eax, dword [ebx + 0x14]
cmp edx, eax
jle 0x1001577a
mov edx, eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x1001578d
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x10015798
mov dword [esp + 0x40], eax
sub edi, dword [esp + 0x12c]
sub ecx, dword [esp + 0x12c]
add ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x13c]
add eax, edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x130]
add edi, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x130]
add edx, eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
cmp ecx, eax
jb 0x100157f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jb 0x100157fa
mov ecx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
cmp edi, eax
jb 0x10015807
mov edi, eax
cmp edx, eax
jb 0x1001580d
mov edx, eax
cmp ecx, dword [esp + 0x24]
jle 0x1001549b
cmp edx, edi
jle 0x1001549b
cmp dword [esi + 0x1188], 0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x100], eax
mov eax, dword [esi + 0x684]
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edx
je 0x10015899
mov edi, dword [esi + 0x89c]
mov ecx, edi
push 0
push eax
call dword [0x100a8504]
call edi
jmp 0x100158aa
mov edi, dword [esi + 0x730]
mov ecx, edi
push eax
call dword [0x100a8504]
call edi
mov dword [ebx + 0xd8], eax
test eax, eax
js 0x10015949
or dword [esi + 0x8c], 8
mov eax, dword [esp + 0x28]
mov edi, dword [esi + 0x768]
mov ecx, edi
or dword [esp + 0x114], 0x500
mov dword [esi + 0x1158], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x115c], eax
lea eax, [esp + 0xe0]
push eax
push dword [esi + 0x684]
call dword [0x100a8504]
call edi
mov dword [ebx + 0xd8], eax
test eax, eax
js 0x10015949
cmp dword [esi + 0x1188], 0
mov eax, dword [esi + 0x684]
je 0x1001592a
mov edi, dword [esi + 0x89c]
mov ecx, edi
push 0
push eax
call dword [0x100a8504]
call edi
jmp 0x1001593b
mov edi, dword [esi + 0x730]
mov ecx, edi
push eax
call dword [0x100a8504]
call edi
mov dword [ebx + 0xd8], eax
mov dword [esp + 0x10], 0
and dword [esi + 0x8c], 0xfffffff7
mov dword [esi + 0x1158], 0
mov dword [esi + 0x115c], 0
cmp dword [ebx + 0xd8], 0
jl 0x1001599f
lea eax, [esp + 0x100]
push eax
push 0
push dword [esp + 0x50]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [ebx + 0x98]
call dword [sym.imp.dwmapi.dll_Ordinal_101]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
cmp dword [esi + 0xb20], 0
je 0x100159ba
test byte [ebx + 0x2c], 1
je 0x100159ba
test eax, eax
je 0x100154a5
cmp dword [esp + 0x4c], 0
jne 0x100154a5
cmp dword [esi + 0x1188], 0
mov eax, dword [esi + 0x684]
je 0x100159e9
mov edi, dword [esi + 0x89c]
mov ecx, edi
push 0
push eax
call dword [0x100a8504]
call edi
jmp 0x100159fa
mov edi, dword [esi + 0x730]
mov ecx, edi
push eax
call dword [0x100a8504]
call edi
mov dword [ebx + 0xd8], eax
mov dword [esp + 0x10], 0
test eax, eax
js 0x100154a5
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov eax, dword [edx]
mov dword [esp + 0x118], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x118]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 1
cmp dword [esp + 0x44], ecx
jne 0x10015a79
mov edx, dword [esp + 0x14]
test byte [edx + 0x44], 1
jne 0x10015a79
mov eax, dword [edx]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x6c], eax
jmp 0x10015a81
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov eax, dword [esi + 0x118]
or eax, 1
mov dword [esi + 0x118], eax
cmp dword [esp + 0x18], ecx
jne 0x10015aa1
or eax, 0x2000
mov dword [esi + 0x118], eax
test byte [ebx + 0x2c], 1
jne 0x10015ab1
cmp dword [esp + 0x38], ecx
jne 0x10015ab1
xor eax, eax
jmp 0x10015ab7
mov eax, dword [ebx + 0x98]
mov dword [esi + 0xd4], eax
lea edi, [ebx + 0x1c]
mov eax, dword [edi]
mov dword [esi + 0xf8], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xfc], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x100], eax
mov eax, dword [edi + 0xc]
or dword [esi + 0x118], 0x80
mov edx, dword [esi + 0x118]
mov dword [esi + 0x104], eax
or edx, 0x40
mov eax, dword [ebx + 8]
mov dword [esi + 0xe8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xec], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0xf0], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0xf4], eax
mov dword [esi + 0x118], edx
cmp dword [esi + 0xd4], ecx
je 0x10015b2c
xor eax, eax
jmp 0x10015b3e
mov eax, dword [esi + 0xb3c]
or edx, 0x100
mov dword [esi + 0x118], edx
mov dword [esi + 0xd8], eax
mov dword [esi + 0x10c], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x108], 1
test edi, edi
jne 0x10015beb
mov eax, dword [ebx + 0x2c]
test al, 2
je 0x10015beb
test al, 1
je 0x10015bd1
lea eax, [esp + 0xc0]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x10015bd4
mov eax, dword [esi + 0x54]
neg eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x58]
neg eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10015bd4
push dword [esp + 0x5c]
lea eax, [esp + 0xc4]
push dword [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test eax, eax
je 0x10015bd4
lea edi, [esp + 0xc0]
jmp 0x10015bd4
lea edi, [ebx + 8]
mov edx, edi
mov ecx, ebx
call fcn.100b8c53
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x18]
mov dword [ebx + 0xcc], eax
mov edx, dword [esi + 0x118]
mov eax, ecx
xor eax, edx
and eax, 7
xor ecx, eax
mov dword [esp + 0x70], ecx
test edi, edi
je 0x10015c51
mov eax, dword [esp + 0x34]
or edx, 0x10000
cmp dword [esi + 0x1184], 0x2000
mov dword [esi + 0x118], edx
cdq
mov dword [esi + 0x240], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x248], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x228], 3
mov dword [esi + 0x244], edx
mov dword [esi + 0x24c], eax
jae 0x10015c51
mov dword [esp + 0x74], 1
lea edx, [esp + 0x60]
mov ecx, esi
call fcn.1000efa0
mov dword [ebx + 0xd8], eax
mov dword [esi + 0x10c], 0
cmp dword [ebx + 0xd8], 0
jl 0x100154a5
cmp dword [esi + 0xb20], 0
je 0x100154a5
test byte [ebx + 0x2c], 1
je 0x100154a5
test byte [esi + 0x8c], 1
jne 0x100154a5
test edi, edi
jne 0x100154a5
lea edi, [esi + 0x54]
lea ecx, [esi + 0xc]
mov edx, edi
call fcn.1001e9c0
test eax, eax
jns 0x10015cd3
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [ebx + 0x98], 0
mov edx, dword [esp + 0x14]
je 0x10015d32
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
jmp 0x100152b1
mov dword [ebx + 0xd8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100154a5
mov dword [ebx + 0xd8], 0x8007000e
jmp 0x100154a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x578
jne 0x100154a5
mov dword [ebx + 0xd8], 0x80070578
jmp 0x100154a5
mov edi, dword [esp + 0x3c]
xor ecx, ecx
test dword [ebx + 0x2c], 0x10000
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], ecx
mov eax, dword [edi]
mov dword [esp + 0x88], eax
mov eax, dword [edx]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xb4], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xa4], eax
je 0x10015de0
mov eax, dword [ebx + 0x90]
or ecx, 4
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], eax
mov eax, dword [edi + 0x44]
xor eax, dword [edx + 0x44]
test al, 0x10
je 0x10015df7
or ecx, 0x80
mov dword [esp + 0xbc], ecx
mov edi, dword [esi + 0x768]
lea eax, [esp + 0x88]
push eax
push dword [esi + 0x684]
mov ecx, edi
call dword [0x100a8504]
call edi
mov dword [ebx + 0xd8], eax
xor edi, edi
jmp 0x100154a9
mov edx, dword [esp + 0x14]
cmp dword [ebx + 0x98], 0
jne 0x10015e3d
test edx, edx
je 0x10015e3d
cmp dword [edx + 0x1c], 1
je 0x10015e3d
xor eax, eax
jmp 0x10015e42
mov eax, 0x88760868
mov dword [ebx + 0xd8], eax
mov ecx, dword [esp + 0x164]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009b610
mov esp, ebp
pop ebp
ret 4