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

Disassembly:
sub esp, 0x74
push ebp
mov ebp, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x84]
mov eax, ebp
neg eax
sbb eax, eax
mov ecx, edi
neg ecx
sbb ecx, ecx
test ecx, eax
jne 0x15011341
push 0x57
call sym.Storm.dll_Ordinal_465
pop edi
xor eax, eax
pop ebp
add esp, 0x74
ret 8
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x15011337
add dword [0x1504bb58], 1
push 0xffffffffffffffec
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
jne 0x150118dc
push 1
mov ecx, ebp
call fcn.1500fff0
test eax, eax
je 0x150118dc
push ebx
push esi
push 1
push 1
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
push eax
push ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetUpdateRgn]
push 0xfffffffffffffff6
push ebp
call dword [sym.imp.USER32.dll_GetClassLongA]
mov ebx, dword [sym.imp.USER32.dll_SetClassLongA]
push 0
push 0xfffffffffffffff6
push ebp
mov esi, eax
call ebx
push edi
push ebp
call dword [sym.imp.USER32.dll_BeginPaint]
push esi
push 0xfffffffffffffff6
push ebp
mov dword [esp + 0x44], eax
call ebx
cmp dword [edi + 4], 0
jne 0x150113dc
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x74
ret 8
test ebp, ebp
jne 0x15011403
push 0x57
call sym.Storm.dll_Ordinal_465
mov eax, dword [esp + 0x24]
push eax
mov dword [edi + 4], ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x74
ret 8
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x150118bc
push 0xffffffffffffffec
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
jne 0x150118bc
push 1
mov ecx, ebp
call fcn.1500fff0
mov esi, eax
test esi, esi
je 0x150118bc
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [esp + 0x64]
push ecx
push ebp
call ebx
lea edx, [esp + 0x6c]
push edx
push ebp
call ebx
mov eax, dword [esi + 0x2c]
push 0
mov dword [esp + 0x50], eax
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x5c], ecx
call sym.Storm.dll_Ordinal_348
mov eax, dword [0x1504bb48]
test eax, eax
mov dword [esp + 0x10], 3
jne 0x150114a0
cmp dword [0x1504bb58], eax
mov dword [esp + 0x10], 0x1003
jne 0x150114a0
mov dword [esp + 0x10], 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 + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edx
je 0x150114cc
mov dword [eax], 0
test byte [esp + 0x10], 2
je 0x150118bc
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov edi, eax
sub eax, ecx
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov esi, edx
jle 0x15011502
mov eax, dword [esp + 0x44]
lea edi, [eax + ecx]
sub edx, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
cmp edx, eax
jle 0x15011513
mov esi, dword [ebx + 0xc]
add esi, eax
test ebx, ebx
je 0x15011543
test byte [esp + 0x10], 1
jne 0x15011543
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edx, edi
sub edx, ecx
cmp edx, eax
jle 0x1501152e
lea edi, [eax + ecx]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x68]
sub eax, dword [ebx + 4]
mov edx, esi
sub edx, ecx
cmp edx, eax
jle 0x15011543
lea esi, [eax + ecx]
lea eax, [esp + 0x54]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [esp + 0x54]
push ecx
push ebp
call ebx
lea edx, [esp + 0x5c]
push edx
push ebp
call ebx
test dword [esp + 0x10], 0x100
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
je 0x1501158b
add dword [esp + 0x14], eax
add dword [esp + 0x18], ecx
add edi, eax
add esi, ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x74]
mov dword [esp + 0x74], eax
push edx
lea eax, [esp + 0x58]
mov dword [esp + 0x7c], ecx
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
call dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x54]
jle 0x150118b5
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x58]
jle 0x150118b5
lea ecx, [esp + 0x74]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
test ebx, ebx
je 0x150118b5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1501161e
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, ebp
lea ebx, [ebx]
push 3
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x15011659
nop
push esi
mov edx, ebx
mov ecx, ebp
call fcn.1500f230
push 3
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x15011640
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x15011680
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
je 0x15011680
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
jne 0x15011630
mov eax, dword [0x15049550]
mov ecx, dword [0x1504954c]
xor ebp, ebp
cmp dword [0x1504bb50], ebp
je 0x150116ad
cmp dword [0x1504bb4c], ebp
je 0x150116ad
cmp ecx, ebp
jl 0x150116ad
cmp eax, ebp
mov dword [esp + 0x14], 1
jge 0x150116b1
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x14], ebp
je 0x1501170e
mov esi, dword [esp + 0x40]
mov edx, dword [0x15049558]
mov edi, dword [0x15049554]
sub edx, esi
add edx, eax
push edx
mov edx, dword [esp + 0x40]
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 + 0x34]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push 0
push ecx
push ebx
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x40]
push 0xcc0020
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x74]
push ecx
push edx
push 0
lea eax, [esp + 0x88]
push eax
push 0
call fcn.1500ef30
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x14], 0
je 0x150118b5
mov ecx, dword [0x15049554]
imul ecx, dword [0x15049558]
xor edi, edi
push edi
push 0x3fb
push str..SDlg.cpp
push ecx
call sym.Storm.dll_Ordinal_401
mov ebx, dword [esp + 0x10]
mov edx, dword [0x15049558]
mov esi, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [0x1504954c]
push edi
mov ecx, dword [0x15049554]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
sub eax, dword [0x15049550]
push edi
mov dword [esp + 0x20], eax
mov eax, ebx
and eax, 1
push eax
mov eax, dword [esp + 0x34]
push ebp
mov dword [esp + 0x90], edx
lea edx, [esp + 0x24]
push edx
push 0xcc0020
push edi
push edi
push edi
push eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x74]
push edx
push eax
push ecx
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0xa8]
push ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0x68]
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 + 0x34]
mov eax, dword [0x1504954c]
mov ecx, dword [0x15049550]
push edx
push 0
and ebx, 0xfffffffe
push ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
push ebp
lea eax, [esp + 0x4c]
mov ecx, dword [0x15049554]
push eax
push 0xcc0020
push 0
push 0
push 0
push ecx
push 0x15049554
push esi
push 0
lea edx, [esp + 0x88]
push edx
push 0
lea edi, [esp + 0xb0]
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
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
push eax
mov dword [edi + 4], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x74
ret 8
push edi
push ebp
call dword [sym.imp.USER32.dll_BeginPaint]
pop edi
pop ebp
add esp, 0x74
ret 8