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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x100a80a4]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [esp + 0x30], 0
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
cmp dword [esi + 0x11a0], eax
je 0x10015a51
test byte [ebx + 0xd4], 1
je 0x10015a51
cmp dword [edx + 0x38], eax
jge 0x10015a51
mov eax, 1
jmp 0x10015a53
xor eax, eax
test byte [esi + 0x8c], 2
mov dword [esp + 0x20], eax
jne 0x100165f5
and dword [esi + 0x118], 0xfffeffff
test dword [ebx + 0x2c], 0x400
je 0x10015b47
test eax, eax
jne 0x10015b47
mov edi, dword [esi + 0x76c]
mov ecx, edi
mov dword [esp + 0xd4], eax
mov eax, dword [edx]
mov dword [esp + 0xb8], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xbc], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xb8]
push eax
push dword [esi + 0x684]
call dword [0x100ae518]
call edi
cmp dword [0x100a9548], 0
mov dword [ebx + 0xd8], eax
jne 0x10015b1d
cmp eax, 0x88760870
je 0x10015b1d
test eax, eax
jns 0x10016617
test byte [esi + 0x8c], 2
je 0x10016617
jmp 0x10015b24
mov ecx, esi
call fcn.10017140
lea eax, [esp + 0xb8]
push eax
push dword [esi + 0x684]
mov esi, dword [esi + 0x76c]
mov ecx, esi
call dword [0x100ae518]
call esi
jmp 0x10016611
cmp dword [ebx + 0x98], 0
je 0x10016505
cmp edx, dword [esi + 0xb8]
je 0x10015b64
test eax, eax
je 0x10016505
mov ecx, dword [edi + 0x20]
mov dword [ebx + 0xd8], 0x80004005
cmp dword [esi + 0xb20], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 1
je 0x10015b9c
test byte [ebx + 0x2c], 1
jne 0x10015ba4
test eax, eax
je 0x10015d19
xor eax, eax
cmp dword [eax*8 + 0x1000513c], ecx
je 0x10015bb9
inc eax
cmp eax, 0x5f
jb 0x10015ba6
xor eax, eax
jmp 0x10015bc0
mov eax, dword [eax*8 + 0x10005138]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
mov dword [esi + 0x1158], 0
push eax
lea eax, [esp + 0x24]
mov dword [esi + 0x115c], 0
push eax
mov eax, dword [ebx + 0x2c]
and eax, 2
or eax, 0x20
shr eax, 1
push eax
push 0
push dword [esi + 0xb38]
push dword [esi + 0xb34]
push dword [ebx + 0x98]
call dword [sym.imp.dwmapi.dll_Ordinal_100]
mov edx, eax
test edx, edx
jns 0x10015c82
mov edi, dword [esi + 0xb24]
mov dword [esi + 0xb20], 0
mov dword [esi + 0xb28], 0
test edi, edi
je 0x10015c4b
mov edx, edi
mov ecx, esi
call fcn.10013de0
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.1001f2c0
test eax, eax
jns 0x10015d15
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]
jmp 0x10015d15
mov ecx, dword [esp + 0x1c]
xor eax, eax
jmp 0x10015c90
cmp dword [eax*8 + 0x10005138], ecx
je 0x10015ca3
inc eax
cmp eax, 0x5f
jb 0x10015c90
xor ecx, ecx
jmp 0x10015caa
mov ecx, dword [eax*8 + 0x1000513c]
cmp dword [esp + 0x28], 0
mov dword [esp + 0x18], ecx
jne 0x10015cc1
cmp edx, 0x263008
jne 0x10016457
cmp edx, 0x263005
je 0x10015cd5
mov dword [esp + 0x18], ecx
cmp edx, 0x263008
jne 0x10015d15
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
cmp edx, 0x263008
jne 0x10015d15
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x20]
cmp dword [esi + 0xb20], 0
je 0x10015d28
test byte [ebx + 0x2c], 1
jne 0x10015d30
test eax, eax
je 0x1001611a
push 0x38
lea eax, [esp + 0xdc]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x110], 0x3c
lea eax, [esp + 0x110]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_GetWindowInfo]
test eax, eax
je 0x100164e1
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0xb28]
je 0x10015da5
mov edi, dword [esi + 0xb24]
test edi, edi
je 0x10015d9f
mov edx, edi
mov ecx, esi
call fcn.10013de0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
mov dword [esi + 0xb24], 0
mov dword [esi + 0xb28], eax
cmp dword [esp + 0x38], 0
je 0x10015db9
mov dword [esp + 0x14], 0
jmp 0x10015ec5
mov edi, dword [esi + 0xb24]
test edi, edi
jne 0x10015ec1
push 0x5c
push 0x40
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0xbc], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100164d5
mov eax, dword [esp + 0x1c]
mov edx, edi
mov ecx, dword [esi + 0xb28]
or eax, 0x10881
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
mov dword [edi + 0x10], ecx
mov ecx, esi
push 1
push eax
mov dword [esp + 0xb8], edi
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa0], 1
mov dword [esp + 0x90], 2
call fcn.100144b0
add esp, 0xc
mov dword [ebx + 0xd8], eax
cmp eax, 0x80070057
je 0x100164c2
test eax, eax
js 0x100164cc
mov eax, dword [esp + 0xac]
mov dword [edi], eax
mov eax, dword [esp + 0xb0]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x84]
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 + 0x24]
test eax, eax
jne 0x1001611e
mov eax, dword [ebx + 0x1c]
mov edi, dword [esp + 0x130]
sub edi, dword [esp + 0x128]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0xe0], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xe4], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xe8], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x12c]
sub eax, dword [esp + 0x124]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x1c], eax
cmp eax, ecx
jle 0x10015f2c
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 0x14]
cmp edi, eax
jle 0x10015f35
mov edi, eax
mov eax, dword [ebx + 8]
xor ecx, ecx
mov edx, dword [ebx + 0xc]
test eax, eax
setle cl
dec ecx
and ecx, eax
mov eax, dword [esp + 0x124]
sub ecx, dword [esp + 0x114]
add ecx, dword [esp + 0x124]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x114]
add eax, ecx
xor ecx, ecx
test edx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
setle cl
sub edi, dword [esp + 0x118]
add edi, dword [esp + 0x128]
dec ecx
and ecx, edx
mov edx, dword [esp + 0x128]
sub ecx, dword [esp + 0x118]
mov eax, dword [eax + 0x28]
add edx, ecx
cmp dword [esp + 0x18], eax
jb 0x10015fa8
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jb 0x10015fb2
mov ecx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
cmp edx, eax
jb 0x10015fbf
mov edx, eax
cmp edi, eax
jb 0x10015fc5
mov edi, eax
cmp ecx, dword [esp + 0x18]
jle 0x10016457
cmp edi, edx
jle 0x10016457
cmp dword [esi + 0x1188], 0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xf8], eax
mov eax, dword [esi + 0x684]
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edi
je 0x10016051
mov edi, dword [esi + 0x89c]
mov ecx, edi
push 0
push eax
call dword [0x100ae518]
call edi
jmp 0x10016062
mov edi, dword [esi + 0x730]
mov ecx, edi
push eax
call dword [0x100ae518]
call edi
mov dword [ebx + 0xd8], eax
test eax, eax
js 0x100160ff
or dword [esi + 0x8c], 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, dword [esi + 0x768]
or dword [esp + 0x10c], 0x500
mov dword [esi + 0x1158], eax
lea eax, [esp + 0xd8]
push eax
push dword [esi + 0x684]
mov dword [esi + 0x115c], ecx
mov ecx, edi
call dword [0x100ae518]
call edi
mov dword [ebx + 0xd8], eax
test eax, eax
js 0x100160ff
cmp dword [esi + 0x1188], 0
mov eax, dword [esi + 0x684]
je 0x100160e2
mov edi, dword [esi + 0x89c]
mov ecx, edi
push 0
push eax
call dword [0x100ae518]
call edi
jmp 0x100160f3
mov edi, dword [esi + 0x730]
mov ecx, edi
push eax
call dword [0x100ae518]
call edi
xor edx, edx
mov dword [ebx + 0xd8], eax
mov dword [esp + 0x10], edx
and dword [esi + 0x8c], 0xfffffff7
mov dword [esi + 0x1158], 0
mov dword [esi + 0x115c], 0
mov eax, dword [esp + 0x24]
cmp dword [esi + 0xb20], 0
je 0x10016135
test byte [ebx + 0x2c], 1
je 0x10016135
test eax, eax
je 0x10016461
cmp dword [esp + 0x3c], 0
jne 0x10016461
cmp dword [esi + 0x1188], 0
mov eax, dword [esi + 0x684]
je 0x10016164
mov edi, dword [esi + 0x89c]
mov ecx, edi
push 0
push eax
call dword [0x100ae518]
call edi
jmp 0x10016175
mov edi, dword [esi + 0x730]
mov ecx, edi
push eax
call dword [0x100ae518]
call edi
xor edi, edi
mov dword [ebx + 0xd8], eax
mov dword [esp + 0x10], edi
test eax, eax
js 0x10016465
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov eax, dword [ecx]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 1
cmp dword [esp + 0x38], edx
jne 0x100161e3
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x44], 1
jne 0x100161e3
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
jmp 0x100161eb
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov ecx, dword [esi + 0x118]
or ecx, 1
mov dword [esi + 0x118], ecx
cmp dword [esp + 0x24], edx
jne 0x1001620c
or ecx, 0x2000
mov dword [esi + 0x118], ecx
test byte [ebx + 0x2c], 1
jne 0x1001621c
cmp dword [esp + 0x20], edx
jne 0x1001621c
xor eax, eax
jmp 0x10016222
mov eax, dword [ebx + 0x98]
mov dword [esi + 0xd4], eax
lea edi, [ebx + 0x1c]
mov eax, dword [edi]
or ecx, 0x80
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]
mov dword [esi + 0x118], ecx
or ecx, 0x40
mov dword [esi + 0x104], eax
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], ecx
cmp dword [esi + 0xd4], edx
je 0x10016293
xor eax, eax
jmp 0x100162a5
mov eax, dword [esi + 0xb3c]
or ecx, 0x100
mov dword [esi + 0x118], ecx
mov dword [esi + 0xd8], eax
mov dword [esi + 0x10c], edi
mov edi, dword [esp + 0x24]
mov dword [esi + 0x108], 1
test edi, edi
jne 0x10016365
mov eax, dword [ebx + 0x2c]
test al, 2
je 0x10016365
test al, 1
je 0x10016338
lea eax, [esp + 0xb8]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x1001633b
mov eax, dword [esi + 0x54]
neg eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x58]
neg eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1001633b
push dword [esp + 0x4c]
lea eax, [esp + 0xbc]
push dword [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test eax, eax
je 0x1001633b
lea edi, [esp + 0xb8]
jmp 0x1001633b
lea edi, [ebx + 8]
mov edx, edi
mov ecx, ebx
call fcn.10018250
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
mov dword [ebx + 0xcc], eax
mov eax, dword [esi + 0x118]
xor eax, ecx
and eax, 7
xor ecx, eax
mov dword [esp + 0x60], ecx
jmp 0x100163cb
mov ecx, dword [esi + 0x118]
mov eax, edx
xor eax, ecx
and eax, 7
xor edx, eax
mov dword [esp + 0x60], edx
test edi, edi
je 0x100163cb
mov eax, dword [esp + 0x28]
or ecx, 0x10000
cmp dword [esi + 0x1184], 0x2000
cdq
mov dword [esi + 0x240], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x248], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x118], ecx
mov dword [esi + 0x228], 3
mov dword [esi + 0x244], edx
mov dword [esi + 0x24c], eax
jae 0x100163cb
mov dword [esp + 0x64], 1
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.1000f320
mov dword [ebx + 0xd8], eax
mov dword [esi + 0x10c], 0
cmp dword [ebx + 0xd8], 0
jl 0x10016461
cmp dword [esi + 0xb20], 0
je 0x10016461
test byte [ebx + 0x2c], 1
je 0x10016461
test byte [esi + 0x8c], 1
jne 0x10016461
test edi, edi
jne 0x10016461
lea edi, [esi + 0x54]
lea ecx, [esi + 0xc]
mov edx, edi
call fcn.1001f2c0
test eax, eax
jns 0x10016439
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]
mov edi, dword [esp + 0x2c]
je 0x10016505
mov eax, dword [esp + 0x20]
jmp 0x10015b54
mov dword [ebx + 0xd8], 0
mov edi, dword [esp + 0x10]
cmp dword [0x100a9548], 0
jne 0x1001647a
cmp dword [ebx + 0xd8], 0x88760870
jne 0x10016481
mov ecx, esi
call fcn.10017140
mov eax, dword [esi + 0x8c]
test al, 2
jne 0x100165f1
test edi, edi
je 0x100164b3
cmp dword [ebx + 0xd8], 0
jne 0x100164b3
or eax, 8
mov ecx, esi
mov dword [esi + 0x8c], eax
call fcn.1000f2e0
and dword [esi + 0x8c], 0xfffffff7
mov dword [esi + 0x118], 0
jmp 0x10016617
mov dword [ebx + 0xd8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10016461
mov dword [ebx + 0xd8], 0x8007000e
jmp 0x10016461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x10]
cmp eax, 0x578
jne 0x10016465
mov dword [ebx + 0xd8], 0x80070578
jmp 0x10016465
mov eax, dword [edi]
xor ecx, ecx
test dword [ebx + 0x2c], 0x10000
mov dword [esp + 0x80], eax
mov eax, dword [edx]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xac], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x9c], eax
je 0x100165af
mov eax, dword [ebx + 0x90]
or ecx, 4
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], eax
mov eax, dword [edi + 0x44]
xor eax, dword [edx + 0x44]
test al, 0x10
je 0x100165c6
or ecx, 0x80
mov dword [esp + 0xb4], ecx
mov edi, dword [esi + 0x768]
lea eax, [esp + 0x80]
push eax
push dword [esi + 0x684]
mov ecx, edi
call dword [0x100ae518]
call edi
mov dword [ebx + 0xd8], eax
xor edi, edi
jmp 0x10016465
mov edx, dword [esp + 0x14]
cmp dword [ebx + 0x98], 0
jne 0x1001660c
test edx, edx
je 0x1001660c
cmp dword [edx + 0x1c], 1
je 0x1001660c
xor eax, eax
jmp 0x10016611
mov eax, 0x88760868
mov dword [ebx + 0xd8], eax
mov ecx, dword [esp + 0x14c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a1500
mov esp, ebp
pop ebp
ret 4