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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bac16
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb4]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, ecx
jne 0x494f36
or eax, 0xffffffff
jmp 0x49555c
mov eax, 0xfffffffe
or ecx, 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
lea eax, [edi + 0x1b4]
mov dword [esi + 8], ebp
mov dword [esi + 0x14], ecx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x1c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push 8
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x1c]
neg eax
lea edx, [ecx + eax*2]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x495026
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea ebx, [edi + 0x1c4]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x495026
mov eax, dword [esi + 4]
mov ebp, dword [edi + 0x1c8]
mov ecx, dword [esi + 8]
xor edx, edx
cmp eax, ebp
setge dl
dec edx
and edx, 0x100
or ecx, edx
xor edx, edx
mov dword [esi + 8], ecx
mov ebp, dword [edi + 0x1d0]
cmp eax, ebp
setle dl
dec edx
and edx, 0x200
mov eax, edx
mov edx, dword [esi]
or eax, ecx
xor ecx, ecx
mov dword [esi + 8], eax
mov ebp, dword [ebx]
cmp edx, ebp
setge cl
dec ecx
and ecx, 0x800
or ecx, eax
xor eax, eax
mov dword [esi + 8], ecx
mov ebp, dword [edi + 0x1cc]
cmp edx, ebp
setle al
dec eax
and eax, 0x400
or eax, ecx
mov dword [esi + 8], eax
jmp 0x495559
push ebp
push ebp
mov ecx, edi
call fcn.00498430
push ebp
push 1
mov ecx, edi
mov ebx, eax
call fcn.00498430
mov ecx, dword [edi + 0x1dc]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, ebx
neg eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], eax
add eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x495088
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
or al, 0x40
mov dword [esi + 8], eax
jmp 0x495243
lea ecx, [esp + 0x28]
push ebp
lea edx, [esp + 0x24]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00497f00
test eax, eax
je 0x495552
lea ecx, [esp + 0x30]
call fcn.00492720
or eax, 0xffffffff
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov eax, dword [edi + 0x1c4]
mov edx, dword [edi + 0x1c8]
mov ecx, eax
push edx
sub ecx, ebx
sub eax, ebx
add ecx, dword [edi + 0x1dc]
mov dword [esp + 0xb4], ebp
push ecx
push edx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x495224
lea ecx, [esp + 0x30]
push ecx
push eax
mov ecx, edi
call fcn.004971d0
mov edx, dword [edi + 0x60]
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x1d8]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esi]
add eax, edx
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x495165
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x495105
jmp 0x495224
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x495224
push eax
mov ecx, edi
call fcn.004971a0
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [edi + 0x58]
test ch, 0xc0
je 0x4951a9
cmp eax, ebp
jl 0x4951a9
lea edx, [eax*8]
sub edx, eax
mov eax, dword [edi + 0x1fc]
mov ecx, dword [eax + edx*4 + 0x18]
mov dword [esi + 0xc], ecx
cmp dword [edi + 0x60], ebp
je 0x49521c
cmp dword [esp + 0x38], ebp
je 0x49521c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x1d8]
add eax, edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x50]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49521c
mov eax, dword [esi + 8]
lea ecx, [esp + 0x30]
or al, 0x10
mov dword [esp + 0xb0], 0xffffffff
mov dword [esi + 8], eax
mov esi, dword [esi + 0x10]
call fcn.00492730
mov eax, esi
jmp 0x49555c
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00492730
cmp dword [esp + 0x24], 1
jne 0x495552
mov eax, dword [edi + 0x58]
mov dword [esp + 0x24], ebp
test ah, 0xc0
je 0x4952c0
mov eax, dword [esi + 0x10]
mov edx, dword [edi + 0x1fc]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0x18]
mov eax, dword [eax + 0x10]
cmp eax, ebp
jl 0x4952c0
push ebp
lea ecx, [esp + 0x14]
push ebx
push ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x20]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
mov eax, dword [edi + 0x1dc]
mov ecx, dword [esp + 0x14]
add edx, eax
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x1d8]
add eax, ecx
mov dword [esi + 0x2c], eax
jmp 0x4953a4
mov ecx, dword [edi + 0x1274]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call sub.MFC42.DLL_CString::CString_5
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0xb0], 1
mov dword [esp + 0x18], edx
jle 0x495351
mov ecx, dword [edi + 0x130c]
lea eax, [esp + 0x98]
push eax
push ebp
push 0x1207
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, dword [esp + 0x98]
mov edx, dword [esi + 4]
add eax, ebx
cmp eax, ecx
mov dword [esp + 0x54], edx
jl 0x49533e
mov edx, dword [esp + 0xa0]
cmp eax, edx
jl 0x495349
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x495302
jmp 0x495351
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0x30]
lea ecx, [edi + 0x12ec]
push eax
push ebp
call fcn.0048ed10
mov eax, dword [esp + 0x44]
mov ecx, edi
push eax
mov dword [esi + 0x14], eax
call fcn.004974e0
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
cmp ebp, eax
mov ebp, 1
jl 0x495385
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp ebp, 1
jne 0x495552
xor ebp, ebp
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
push ecx
mov ecx, edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0xfffffffe
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
call fcn.004971a0
mov edx, dword [esi + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov ecx, edi
push eax
mov dword [esp + 0x6c], edx
call fcn.00493d30
cmp dword [esi + 0x1c], ebp
jne 0x4954b7
mov eax, dword [esp + 0x60]
test ah, 1
je 0x4954b7
mov ecx, dword [esp + 0x88]
cmp ecx, ebp
jl 0x4954b7
mov eax, dword [edi + 0x1d8]
mov edx, eax
imul edx, ecx
mov ecx, dword [esp + 0x10]
add ecx, edx
mov dl, byte [esp + 0x8c]
test dl, 0x60
mov dword [esp + 0x10], ecx
je 0x4954b7
mov edx, ecx
sub edx, eax
mov eax, dword [esi]
cmp eax, edx
jl 0x4954b7
cmp eax, ecx
jge 0x4954b7
lea eax, [esi + 0x20]
mov ebp, dword [esp + 0x18]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov dword [edx + 8], ebp
mov ebp, dword [esp + 0x1c]
mov dword [edx + 0xc], ebp
mov edx, dword [edi + 0x1d8]
mov ebp, dword [eax]
add ebx, edx
sub ebp, ebx
mov ebx, dword [esi + 0x28]
mov dword [eax], ebp
mov eax, ebp
sub ebx, eax
mov eax, dword [esi + 8]
mov dword [esi + 0x28], ebx
mov edx, dword [edi + 0x1d8]
add ecx, edx
or al, 0x20
mov dword [esi + 0x2c], ecx
mov dword [esi + 8], eax
jmp 0x495559
mov eax, dword [esp + 0x4c]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea edx, [esi + 0x20]
mov dword [esi + 0x20], ecx
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov edx, dword [edi + 0x1d8]
add edx, eax
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x50]
mov dl, byte [esp + 0x60]
add ecx, eax
test dl, 4
je 0x49551a
mov ebx, dword [edi + 0xe8]
add ebx, eax
add ecx, ebx
mov ebx, dword [esi]
cmp ebx, ecx
jge 0x49551a
mov eax, dword [esi + 8]
or al, 2
mov dword [esi + 8], eax
jmp 0x495559
test dl, 8
je 0x495539
mov edx, dword [edi + 0xf0]
add edx, eax
add ecx, edx
mov edx, dword [esi]
cmp edx, ecx
jge 0x495539
mov eax, dword [esi + 8]
or al, 4
mov dword [esi + 8], eax
jmp 0x495559
mov edx, dword [esi]
cmp edx, ecx
jl 0x495552
mov ecx, dword [esi + 0x28]
sub ecx, eax
cmp edx, ecx
jge 0x495552
mov eax, dword [esi + 8]
or al, 8
mov dword [esi + 8], eax
jmp 0x495559
mov dword [esi + 8], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret 4