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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad848
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d0968]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x24
call fcn.00480c61
xor esi, esi
add esp, 4
cmp eax, esi
je 0x4275ba
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 4], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], ecx
mov dword [eax], vtable.CStaticMultiLine.0
jmp 0x4275bc
xor eax, eax
cmp eax, esi
mov dword [edi + 0x60], eax
je 0x4276ad
push esi
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push esi
push 0x50000000
push esi
push ecx
mov dword [eax], esi
mov eax, esp
mov dword [eax], esi
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x14], esp
push edx
call fcn.00426a90
mov eax, dword [edi + 0x60]
add eax, 4
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4276ad
test dword [edi + 0x5c], 0x80000
je 0x427632
mov esi, dword [edi + 0x60]
mov ecx, dword [esi + 4]
add esi, 4
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x427632
mov edx, dword [esi]
push ecx
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi + 0x60]
mov ecx, dword [0x4d251c]
mov edx, dword [eax + 4]
push 1
push ecx
add eax, 4
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x58], 0x10
jb 0x427658
mov ebx, dword [edi + 0x44]
jmp 0x42765b
lea ebx, [edi + 0x44]
test ebx, ebx
jne 0x427663
xor eax, eax
jmp 0x427692
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x42767b
xor eax, eax
jmp 0x427692
lea eax, [esi + esi]
call fcn.00480be0
mov eax, esp
push 0x3a8
push esi
push ebx
push eax
call fcn.004010f0
push eax
mov eax, dword [edi + 0x60]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [edi + 0x60]
push edx
mov ecx, edi
call fcn.00427470
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword [edi + 0x5c]
mov ebx, 7
mov ecx, eax
and ecx, ebx
cmp cl, bl
mov dword [ebp - 4], esi
jne 0x4276ec
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 1
call fcn.0041ddc0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xb
push eax
jmp 0x4277f8
mov ecx, 6
mov edx, eax
and edx, ecx
cmp dl, cl
jne 0x42772b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 2
call fcn.0041ddc0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0xa
call fcn.0041ddc0
mov dword [ebp - 0x14], 0xb
jmp 0x4277f4
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x427767
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 3
call fcn.0041ddc0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 4
call fcn.0041ddc0
mov dword [ebp - 0x14], 5
jmp 0x4277f4
mov edx, eax
and edx, 5
cmp dl, 5
jne 0x427791
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ddc0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push ecx
jmp 0x4277f8
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x4277c2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ddc0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.0041ddc0
mov dword [ebp - 0x14], 2
jmp 0x4277f4
mov edx, eax
and edx, 4
cmp dl, 4
jne 0x4277e4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ddc0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
jmp 0x4277f8
mov edx, eax
mov eax, 1
and edx, eax
cmp dl, al
mov dword [ebp - 0x14], eax
je 0x427778
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
call fcn.0041ddc0
test dword [edi + 0x5c], 0x4000
je 0x42781c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 9
call fcn.0041ddc0
xor ebx, ebx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov dword [ebp - 0x14], ebx
je 0x427a16
mov eax, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x427a16
push 0x54
call fcn.00480c61
mov esi, eax
add esp, 4
test esi, esi
je 0x427a0e
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi], vtable.wly::CButton2X.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov ecx, 0x1f5600
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
push 0xc
mov ecx, esi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
call fcn.00424440
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4278b6
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x4278be
call fcn.00481100
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + ebx*4]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0
push 0x50000000
push 0
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], 0
mov edx, dword [edi + 4]
mov dword [ebp - 0x28], esp
push edx
mov ecx, esi
call fcn.00426a10
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4279de
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x427910
mov eax, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x427918
call fcn.00481100
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + ebx*4]
push ecx
mov ecx, edi
call fcn.00422e80
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x42797a
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
add ebx, 1
cmp ebx, 0x3fffffff
jg 0x427975
lea eax, [ebx + ebx]
call fcn.00480be0
mov eax, esp
test eax, eax
mov dword [ebp - 0x28], eax
je 0x427975
push ebx
push eax
push 0xffffffffffffffff
mov word [eax], 0
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x427977
xor eax, eax
mov ebx, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4279de
cmp dword [edi + 0x1e4], 0
jne 0x4279d0
mov eax, dword [edi + 0x1b8]
push str.IDB_BITMAP_BTN
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x1e4]
test eax, eax
je 0x4279c7
cmp eax, dword [ebp - 0x28]
je 0x4279c7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0x1e4], ecx
mov edx, dword [edi + 0x1e4]
push edx
mov ecx, esi
call fcn.00424380
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4279f1
mov eax, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4279f9
call fcn.00481100
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [edi + 0x68]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
call fcn.004271e0
add ebx, 1
jmp 0x42781e
mov eax, dword [edi + 0x5c]
mov edx, eax
and edx, 0x40
cmp dl, 0x40
jne 0x427a2b
mov ebx, dword [edi + 0x84]
jmp 0x427a5a
mov ecx, eax
and ecx, 0x30
cmp cl, 0x30
jne 0x427a3d
mov ebx, dword [edi + 0x80]
jmp 0x427a5a
mov edx, eax
and edx, 0x20
cmp dl, 0x20
jne 0x427a4c
mov ebx, dword [edi + 0x7c]
jmp 0x427a5a
and eax, 0x10
cmp al, 0x10
jne 0x427ae7
mov ebx, dword [edi + 0x78]
test ebx, ebx
je 0x427ae7
push 4
call fcn.00480c61
add esp, 4
test eax, eax
je 0x427a7a
mov dword [eax], 0
mov esi, eax
jmp 0x427a7c
xor esi, esi
test esi, esi
mov dword [edi + 0x64], esi
je 0x427ae7
mov ecx, dword [0x4d253c]
mov eax, dword [edi + 4]
mov edx, dword [0x4ce00c]
push 0
push ecx
mov ecx, dword [section..data]
push 0
push eax
mov eax, dword [0x4ce004]
sub edx, eax
push edx
mov edx, dword [0x4ce008]
sub edx, ecx
push edx
push eax
push ecx
push 0x5000000e
push 0
push 0x4b5c28
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
mov esi, dword [edi + 0x64]
test esi, esi
je 0x427ae7
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427ae7
push ebx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00423ae0
mov eax, dword [edi + 0x5c]
mov edx, eax
and edx, 0x300
xor esi, esi
cmp edx, 0x300
jne 0x427b03
mov esi, 3
jmp 0x427b1d
test eax, 0x200
je 0x427b11
mov esi, 2
jmp 0x427b1d
test eax, 0x100
je 0x427b1d
mov esi, 1
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x427bb2
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp eax, esi
jbe 0x427bb2
test ecx, ecx
je 0x427b44
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x427b49
call fcn.00481100
mov eax, dword [edi + 0x6c]
cmp dword [eax + esi*8 + 4], 0
je 0x427bb2
mov ecx, eax
test ecx, ecx
je 0x427b65
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x427b6a
call fcn.00481100
mov ecx, dword [edi + 0x6c]
mov eax, dword [ecx + esi*8 + 4]
mov edx, dword [eax + 4]
add eax, 4
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427bb2
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x427b95
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x427b9a
call fcn.00481100
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + esi*8]
mov edx, dword [edi + 4]
push 0
push ecx
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test dword [edi + 0x5c], 0x10000
je 0x427bc5
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x427bd5
push eax
call fcn.004803bd
add esp, 4
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480bcf
mov esp, ebp
pop ebp
ret