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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d31b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0xd0], ecx
push 0x231
push str.viewprev.cpp
mov eax, dword [ebp + 8]
push eax
call fcn.00493f60
mov ecx, dword [ebp - 0xd0]
cmp dword [ecx + 0x70], 0
je 0x512946
mov edx, dword [ebp - 0xd0]
cmp dword [edx + 0x7c], 0
jne 0x51294b
jmp 0x512f97
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
call fcn.004f0ed7
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x14]
call fcn.004ef835
mov dword [ebp - 4], 0
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 2
push 0
lea ecx, [ebp - 0x14]
call fcn.004ef870
lea ecx, [ebp - 0x1c]
call fcn.004ef835
mov byte [ebp - 4], 1
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 3
push 0
lea ecx, [ebp - 0x1c]
call fcn.004ef870
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x114]
mov dword [ecx + 0x10], 1
mov dword [ebp - 0x20], 0
jmp 0x5129cc
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0xf8]
jae 0x512f6c
mov ecx, dword [ebp - 0xd0]
add ecx, 0x78
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x78]
call dword [eax + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
call fcn.004f07f5
push eax
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x74]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x74]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0xf4]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x114]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0xd0]
mov esi, dword [ecx + 0xf4]
add esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 0x114]
call fcn.004e4e53
cmp esi, eax
ja 0x512a8c
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x114]
push ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x70]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x70]
mov edx, dword [eax]
call dword [edx + 0xe4]
push 0xa
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x74]
call fcn.004f093c
push eax
push 8
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x74]
call fcn.004f093c
push eax
push 0
push 0
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 0x114]
add ecx, 0x24
call fcn.004eef1d
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x114]
add ecx, 0x24
push ecx
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 0x74]
call fcn.004f12a1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 0x90]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x90]
add eax, ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], 0
jne 0x512b73
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xd0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd0]
call dword [edx + 0x114]
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 0xec], 0
je 0x512b73
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0xd0]
call fcn.004a5442
mov ecx, eax
call fcn.004eeb15
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
push 1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004f10bf
push 0
push 0
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004a7b55
push 5
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x2c]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.004a71d2
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004f2134
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004a71d2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
add ecx, 3
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
add eax, 1
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004a8331
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
add edx, 1
push edx
mov ecx, dword [ebp + 8]
call fcn.004a8407
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
add eax, 3
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004a8331
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
add edx, 1
push edx
mov ecx, dword [ebp + 8]
call fcn.004a8407
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x38]
sub edx, 2
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
sub eax, 2
mov dword [ebp - 0x34], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea ecx, [ebp - 0x40]
call fcn.004eee8a
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_FillRect]
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x28]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x114]
cmp dword [ecx + 0x10], 0
je 0x512cfe
mov edx, dword [ebp - 0xd0]
mov esi, dword [edx + 0xf4]
add esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x114]
call fcn.004e4e53
cmp esi, eax
jbe 0x512d65
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x74]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x74]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x78
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x78]
call dword [eax + 0x28]
cmp dword [ebp - 0x20], 0
jne 0x512d60
mov ecx, dword [ebp - 0xd0]
cmp dword [ecx + 0xf4], 1
jbe 0x512d60
push 1
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0xf4]
sub eax, 1
push eax
mov ecx, dword [ebp - 0xd0]
call fcn.00513759
jmp 0x512f6c
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0xf4]
push eax
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd0]
call dword [edx + 0x118]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x74]
call fcn.00515458
lea ecx, [ebp - 0x4c]
call fcn.004ee552
lea edx, [ebp - 0x4c]
push edx
push 0
push 0
push 0xd
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x74]
mov edx, dword [eax]
call dword [edx + 0x78]
test eax, eax
jne 0x512de9
push 0x28f
push str.viewprev.cpp
call fcn.004e5110
test eax, eax
je 0x512de9
int3
xor eax, eax
test eax, eax
jne 0x512db0
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 0x74]
call fcn.0051728e
mov ecx, dword [ebp - 0x2c]
call fcn.004eedc7
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004ee59f
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x94]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004ee659
push 1
push 1
lea ecx, [ebp - 0xb4]
call fcn.004ee560
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004ee659
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
lea ecx, [ebp - 0xc4]
call fcn.004ee59f
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004ee659
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x74]
call fcn.0051714c
mov edx, dword [ebp - 0xd0]
mov ecx, dword [edx + 0x74]
call fcn.00517199
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x114]
push ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x70]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x70]
mov edx, dword [eax]
call dword [edx + 0x104]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x74]
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x78
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x78]
call dword [eax + 0x28]
jmp 0x5129c3
lea ecx, [ebp - 0x14]
call fcn.004a9c4c
lea ecx, [ebp - 0x1c]
call fcn.004a9c4c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004ef854
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004ef854
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4