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

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x70]
mov eax, ebp
neg eax
sbb eax, eax
mov ecx, esi
neg ecx
sbb ecx, ecx
test ecx, eax
jne 0x1501014e
push 0x57
call sym.Storm.dll_Ordinal_465
pop esi
xor eax, eax
pop ebp
add esp, 0x60
ret 0x1c
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x15010144
cmp esi, 1
jne 0x1501016f
push 0xffffffffffffffec
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
jne 0x150106e9
push esi
mov ecx, ebp
call fcn.1500fff0
mov esi, eax
test esi, esi
je 0x15010144
push ebx
push edi
lea edx, [esp + 0x40]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x40]
push eax
push ebp
call edi
lea ecx, [esp + 0x48]
push ecx
push ebp
call edi
mov eax, dword [esp + 0x88]
test eax, eax
mov edi, dword [esp + 0x44]
je 0x150101fd
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
setl dl
sub edx, 1
and ecx, edx
add dword [esp + 0x40], ecx
mov ecx, dword [eax + 4]
xor edx, edx
test ecx, ecx
setl dl
sub edx, 1
and ecx, edx
add edi, ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor edx, edx
test ecx, ecx
setg dl
mov dword [esp + 0x44], edi
sub edx, 1
and ecx, edx
add dword [esp + 0x48], ecx
xor ecx, ecx
test eax, eax
setg cl
sub ecx, 1
and eax, ecx
add dword [esp + 0x4c], eax
mov cl, byte [esp + 0x8c]
test cl, 1
jne 0x1501025f
mov edx, dword [esi + 0x24]
sub edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x40]
add eax, edx
cmp dword [esp + 0x48], eax
jl 0x1501021f
mov dword [esp + 0x48], eax
test cl, 2
je 0x1501024d
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x28]
sub eax, edi
add eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x1501025f
add edi, eax
mov dword [esp + 0x44], edi
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
add ecx, edi
mov dword [esp + 0x4c], ecx
jmp 0x1501025f
mov edx, dword [esi + 0x28]
sub edx, dword [esi + 0x20]
add edi, edx
cmp dword [esp + 0x4c], edi
jl 0x1501025f
mov dword [esp + 0x4c], edi
mov eax, dword [esi + 0x2c]
push 0
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x38], ecx
call sym.Storm.dll_Ordinal_348
mov eax, dword [0x1504bb48]
test eax, eax
mov dword [esp + 0x78], 3
jne 0x150102a7
cmp dword [0x1504bb58], eax
mov dword [esp + 0x78], 0x1003
jne 0x150102a7
mov dword [esp + 0x78], 0x3003
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x18]
neg eax
sbb eax, eax
not eax
and eax, 0x1504bb48
lea ebx, [esi + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x8c], edx
je 0x150102d9
mov dword [eax], 0
test ebp, ebp
jne 0x150102f1
push 0x57
call sym.Storm.dll_Ordinal_465
pop edi
pop ebx
pop esi
lea eax, [ebp + 1]
pop ebp
add esp, 0x60
ret 0x1c
test byte [esp + 0x78], 2
je 0x150106e7
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov edi, eax
sub eax, ecx
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov esi, edx
jle 0x15010327
mov eax, dword [esp + 0x20]
lea edi, [eax + ecx]
mov eax, dword [esp + 0x24]
sub edx, ebp
cmp edx, eax
jle 0x15010336
mov esi, dword [ebx + 0xc]
add esi, eax
test ebx, ebx
je 0x15010362
test byte [esp + 0x78], 1
jne 0x15010362
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edx, edi
sub edx, ecx
cmp edx, eax
jle 0x15010351
lea edi, [eax + ecx]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov ecx, esi
sub ecx, ebp
cmp ecx, eax
jle 0x15010362
lea esi, [eax + ebp]
mov ebp, dword [esp + 0x74]
lea edx, [esp + 0x50]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x50]
push eax
push ebp
call ebx
lea ecx, [esp + 0x58]
push ecx
push ebp
call ebx
test dword [esp + 0x78], 0x100
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
je 0x150103ae
add dword [esp + 0x30], eax
add dword [esp + 0x34], ecx
add edi, eax
add esi, ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], edx
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x68], eax
push edx
mov eax, edx
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], esi
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x50]
jle 0x150106e7
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x54]
jle 0x150106e7
lea eax, [esp + 0x60]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
test ebx, ebx
je 0x150106e7
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x15010438
push 1
push eax
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebp
mov edx, ebx
mov ecx, ebp
call fcn.1500f230
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 3
push ebp
call edi
mov esi, eax
test esi, esi
je 0x1501046a
mov ecx, dword [esp + 0x74]
push esi
mov edx, ebx
call fcn.1500f230
push 3
push esi
call edi
mov esi, eax
test esi, esi
jne 0x15010453
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x15010491
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x15010491
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
jne 0x15010448
mov eax, dword [0x15049550]
mov ecx, dword [0x1504954c]
xor ebp, ebp
cmp dword [0x1504bb50], ebp
je 0x150104be
cmp dword [0x1504bb4c], ebp
je 0x150104be
cmp ecx, ebp
jl 0x150104be
cmp eax, ebp
mov dword [esp + 0x74], 1
jge 0x150104c2
mov dword [esp + 0x74], ebp
cmp dword [esp + 0x74], ebp
je 0x1501051f
mov esi, dword [esp + 0x1c]
mov edx, dword [0x15049558]
mov edi, dword [0x15049554]
sub edx, esi
add edx, eax
push edx
mov edx, dword [esp + 0x1c]
sub edi, edx
add edi, ecx
push edi
sub eax, esi
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
sub ecx, edx
push ecx
call esi
push 1
push 1
push 0
push 0
mov ebp, eax
call esi
mov edi, dword [sym.imp.GDI32.dll_CombineRgn]
push 4
push ebp
mov esi, eax
push ebx
push esi
call edi
push 1
push ebp
push ebx
push ebp
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x88]
push 0
push ecx
mov ecx, dword [esp + 0x8c]
push ebx
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x9c]
push 0xcc0020
push 0
push eax
push ecx
mov ecx, dword [esp + 0xb0]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
push 0
lea edx, [esp + 0x84]
push edx
push 0
call fcn.1500ef30
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp dword [esp + 0x74], edi
je 0x150106e7
mov eax, dword [0x15049554]
imul eax, dword [0x15049558]
push edi
push 0x3fb
push str..SDlg.cpp
push eax
call sym.Storm.dll_Ordinal_401
mov ebx, dword [esp + 0x78]
mov edx, dword [0x15049558]
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, dword [0x1504954c]
push edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
sub eax, dword [0x15049550]
mov ecx, dword [0x15049554]
push edi
mov dword [esp + 0x3c], eax
mov eax, ebx
and eax, 1
push eax
mov eax, dword [esp + 0x90]
push ebp
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x94]
push 0xcc0020
push edi
push eax
mov eax, dword [esp + 0xa8]
push edx
push eax
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x50]
push edx
push eax
push ecx
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0x48]
push esi
call fcn.1500ef30
mov eax, dword [0x15049554]
mov edx, dword [0x15049558]
push 0x8800c6
push 0
push eax
push eax
push edx
push eax
mov eax, dword [0x1504bb50]
push eax
push esi
call sym.Storm.dll_Ordinal_313
mov eax, dword [0x15049554]
mov ecx, dword [0x15049558]
mov edx, dword [0x1504bb4c]
push 0xee0086
push 0
push eax
push eax
push ecx
push eax
push edx
push esi
call sym.Storm.dll_Ordinal_313
mov edx, dword [esp + 0x14]
mov eax, dword [0x1504954c]
mov ecx, dword [0x15049550]
push edx
push 0
and ebx, 0xfffffffe
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
push ebp
mov ecx, dword [0x15049554]
lea eax, [esp + 0x28]
push eax
push 0xcc0020
push 0
push 0
push 0
push ecx
push 0x15049554
push esi
push 0
lea edx, [esp + 0x84]
push edx
push 0
lea edi, [esp + 0x9c]
call fcn.1500ef30
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0x43c
push str..SDlg.cpp
push esi
call sym.Storm.dll_Ordinal_403
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x60
ret 0x1c