Function at 0x150109b0
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
push esi
push edi
mov edi, dword [esp + 0xa8]
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [edi + 0x10]
push 0
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
push 0xf2
and esi, 1
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test al, 1
je 0x15010a0c
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
and cl, 6
neg cl
push ebx
push ebp
push 0xfffffffffffffff0
push edx
sbb ecx, ecx
neg ecx
mov dword [esp + 0x74], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_GetPropA]
mov ebx, eax
mov eax, dword [edi + 0x14]
push str.SDlg_OrigStyle
push eax
call ebp
test eax, eax
je 0x15010a4e
mov ecx, dword [edi + 0x14]
push str.SDlg_OrigStyle
push ecx
call ebp
mov ebx, eax
and ebx, 0xf
je 0x15010a67
cmp ebx, 1
je 0x15010a67
cmp ebx, 0xb
je 0x15010a67
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x28], ebp
jmp 0x15010a75
mov dword [esp + 0x28], 1
mov ebp, dword [esp + 0x28]
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
jne 0x15010a99
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 0xffffffff
cmp esi, eax
je 0x15010abc
cmp dword [esp + 0x6c], eax
je 0x15010aaa
mov ebx, 0x400
jmp 0x15010ad9
mov ebx, dword [edi + 0x10]
and bl, 0x10
neg bl
sbb ebx, ebx
and ebx, 0x40
add ebx, 0x40
jmp 0x15010ad9
cmp dword [esp + 0x6c], eax
je 0x15010ac9
mov ebx, 0x100
jmp 0x15010ad9
mov ebx, dword [edi + 0x10]
and bl, 0x10
neg bl
sbb ebx, ebx
and ebx, 0x10
add ebx, 0x10
mov ecx, dword [edi + 0x14]
push ebx
call fcn.1500fff0
test eax, eax
mov dword [esp + 0xa8], eax
je 0x15010b0f
mov eax, dword [edi + 0x14]
neg ebp
sbb ebp, ebp
and ebp, 3
push ebp
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push ebx
push eax
call sym.Storm.dll_Ordinal_210
jmp 0x150110b5
mov ebx, ebp
mov ebp, dword [edi + 0x14]
neg ebx
sbb ebx, ebx
mov eax, 1
sub eax, esi
and ebx, 3
test ebp, ebp
mov dword [esp + 0x94], eax
jne 0x15010b39
push 0x57
call sym.Storm.dll_Ordinal_465
jmp 0x1501108e
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1501108e
push 0xffffffffffffffec
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
jne 0x1501108e
push 1
mov ecx, ebp
call fcn.1500fff0
mov esi, eax
test esi, esi
je 0x1501108a
lea ecx, [esp + 0x54]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x54]
push edx
push ebp
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x34]
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and eax, ecx
add dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
xor ecx, ecx
test eax, eax
setg cl
sub ecx, 1
and ecx, eax
mov eax, dword [esp + 0x60]
add eax, ecx
test bl, 1
mov dword [esp + 0x60], eax
jne 0x15010c1b
mov edx, dword [esi + 0x24]
sub edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x54]
add ecx, edx
cmp dword [esp + 0x5c], ecx
jl 0x15010bd9
mov dword [esp + 0x5c], ecx
test bl, 2
je 0x15010c07
sub eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x58]
sub eax, ecx
add eax, dword [esi + 0x20]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x15010c1b
add ecx, eax
mov dword [esp + 0x58], ecx
mov edx, dword [esi + 0x28]
sub edx, dword [esi + 0x20]
add edx, ecx
mov dword [esp + 0x60], edx
jmp 0x15010c1b
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x58]
add ecx, edx
cmp eax, ecx
jl 0x15010c1b
mov dword [esp + 0x60], ecx
mov eax, dword [esi + 0x2c]
push 0
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x20], ecx
call sym.Storm.dll_Ordinal_348
mov eax, dword [0x1504bb48]
test eax, eax
mov dword [esp + 0x24], 3
jne 0x15010c63
cmp dword [0x1504bb58], eax
mov dword [esp + 0x24], 0x1003
jne 0x15010c63
mov dword [esp + 0x24], 0x3003
mov ecx, dword [esi + 0x2c]
neg eax
sbb eax, eax
not eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x18]
and eax, 0x1504bb48
lea edx, [esi + 0x1c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x88], ecx
je 0x15010c98
mov dword [eax], 0
test byte [esp + 0x24], 2
je 0x1501108a
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebx, eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x60]
sub eax, ecx
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x78], ecx
mov esi, edx
jle 0x15010cce
mov eax, dword [esp + 0x64]
lea ebx, [eax + ecx]
sub edx, dword [esp + 0x58]
mov eax, dword [esp + 0x68]
cmp edx, eax
mov edx, dword [esp + 0x30]
jle 0x15010ce3
mov esi, dword [edx + 0xc]
add esi, eax
test edx, edx
je 0x15010d17
test byte [esp + 0x24], 1
jne 0x15010d17
mov eax, dword [edx + 8]
sub eax, dword [edx]
mov edx, ebx
sub edx, ecx
cmp edx, eax
jle 0x15010cfe
lea ebx, [eax + ecx]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
mov ecx, dword [esp + 0x58]
mov edx, esi
sub edx, ecx
cmp edx, eax
jle 0x15010d17
lea esi, [eax + ecx]
lea eax, [esp + 0x34]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.USER32.dll_ClientToScreen]
lea edx, [esp + 0x3c]
push edx
push ebp
call dword [sym.imp.USER32.dll_ClientToScreen]
test dword [esp + 0x24], 0x100
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
je 0x15010d61
add dword [esp + 0x78], eax
add dword [esp + 0x7c], ecx
add ebx, eax
add esi, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], eax
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x4c], ecx
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x34]
jle 0x1501108a
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x38]
jle 0x1501108a
lea ecx, [esp + 0x44]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
test ebx, ebx
je 0x1501108a
push ebp
mov edx, ebx
mov ecx, ebp
call fcn.1500f230
mov edi, ebp
push 3
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x15010e0c
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 0x15010df3
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x15010e33
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
je 0x15010e33
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
jne 0x15010de4
mov eax, dword [0x15049550]
mov ecx, dword [0x1504954c]
xor ebp, ebp
cmp dword [0x1504bb50], ebp
je 0x15010e60
cmp dword [0x1504bb4c], ebp
je 0x15010e60
cmp ecx, ebp
jl 0x15010e60
cmp eax, ebp
mov dword [esp + 0x78], 1
jge 0x15010e64
mov dword [esp + 0x78], ebp
cmp dword [esp + 0x78], ebp
je 0x15010ec1
mov esi, dword [esp + 0x74]
mov edx, dword [0x15049558]
mov edi, dword [0x15049554]
sub edx, esi
add edx, eax
push edx
mov edx, dword [esp + 0x74]
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 + 0x90]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x98]
push 0
push ecx
push ebx
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x9c]
push 0xcc0020
push 0
push eax
push eax
mov eax, dword [esp + 0xb0]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
push 0
lea eax, [esp + 0x68]
push eax
push 0
call fcn.1500ef30
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x78], 0
je 0x15011083
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 + 0x24]
mov edx, dword [0x15049558]
mov esi, eax
mov eax, dword [esp + 0x70]
sub eax, dword [0x1504954c]
push edi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x78]
sub eax, dword [0x15049550]
mov ecx, dword [0x15049554]
push edi
mov dword [esp + 0x84], eax
mov eax, ebx
and eax, 1
push eax
mov eax, dword [esp + 0xa0]
push ebp
mov dword [esp + 0x60], edx
lea edx, [esp + 0x88]
push edx
push 0xcc0020
push edi
push eax
push eax
mov eax, dword [esp + 0xb0]
push eax
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], 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 + 0x90]
mov eax, dword [0x1504954c]
mov ecx, dword [0x15049550]
push edx
push 0
and ebx, 0xfffffffe
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
push ebp
mov ecx, dword [0x15049554]
lea eax, [esp + 0x80]
push eax
push 0xcc0020
push 0
push 0
push 0
push ecx
push 0x15049554
push esi
push 0
lea edx, [esp + 0x68]
push edx
push 0
lea edi, [esp + 0x80]
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 + 0xb0]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x28], 0
je 0x150110b5
mov ecx, dword [esp + 0x2c]
neg esi
sbb esi, esi
push 0xf
and esi, 9
add esi, 1
push esi
lea eax, [esp + 0xa0]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push 0
push 0x24c
mov ebp, eax
push str..SDlg.cpp
lea ebx, [ebp + 1]
push ebx
call sym.Storm.dll_Ordinal_401
mov esi, eax
mov eax, dword [edi + 0x14]
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [edi + 0x18]
push 6
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
add edx, 3
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xa4]
add eax, 3
add ecx, 0xffffffff
add edx, 0xffffffff
cmp dword [esp + 0x28], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
je 0x150111e8
mov eax, dword [edi + 0x14]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea ecx, [esp + 0x64]
push ecx
push 5
mov edi, eax
mov eax, 0x10
push str.__Oy
push ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
test edi, 0x800
mov ecx, dword [esp + 0x1c]
je 0x1501119f
mov eax, dword [esp + 0x14]
mov edx, ecx
sub edx, dword [esp + 0x68]
lea edx, [eax + edx - 6]
mov dword [esp + 0x14], edx
jmp 0x150111c8
test edi, 0xc00
jne 0x150111af
test edi, 0x400
jne 0x150111c8
mov edi, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [esp + 0x68]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
lea eax, [edi + eax + 1]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], 0
je 0x15011206
mov eax, 1
add dword [esp + 0x10], eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
add ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x15011206
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x15011206
mov edx, dword [ecx + 0x24]
sub dword [esp + 0x14], 1
sub edx, dword [ecx + 0x1c]
lea eax, [eax + edx + 6]
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push ebx
call edi
mov edx, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [esp + 0x28], ebx
lea ecx, [esp + 0x10]
setne bl
push ebx
push ecx
push ebp
push esi
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, 1
sub dword [esp + 0x10], eax
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
neg eax
sbb eax, eax
and eax, 0xff808081
add eax, 0xffffff
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
mov edi, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push 0
push 0x27b
push str..SDlg.cpp
push esi
call sym.Storm.dll_Ordinal_403
cmp dword [esp + 0x28], 0
mov esi, dword [esp + 0xb0]
pop ebp
pop ebx
je 0x150112f4
test byte [esi + 0x10], 0x10
je 0x150112f4
mov ecx, dword [esi + 0x14]
push 0xa0
call fcn.1500fff0
test eax, eax
jne 0x150112f4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x90]
lea ecx, [edx + eax + 4]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x3c], ecx
lea ecx, [edx + eax + 4]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x40], ecx
lea ecx, [edx + eax - 3]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
push ecx
lea eax, [edx + eax - 3]
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov edx, dword [esi + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret 4