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

Disassembly:
push 0xffffffffffffffff
push 0x4bc198
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, 4
push ebx
call fcn.0048e9fc
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x477301
mov dword [eax], ebp
jmp 0x477303
xor eax, eax
cmp eax, ebp
mov dword [edi + 0x60], eax
je 0x477396
push ebp
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ebp
push 0x50000000
push ebp
push ecx
mov dword [eax], ebp
mov eax, esp
mov dword [eax], ebp
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x60]
mov dword [esp + 0x2c], esp
push eax
call fcn.00473e70
mov eax, dword [edi + 0x60]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477396
test dword [edi + 0x5c], 0x80000
je 0x477370
mov esi, dword [edi + 0x60]
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x477370
mov eax, dword [esi]
push ecx
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [edi + 0x58], 0x10
jb 0x47737b
mov eax, dword [edi + 0x44]
jmp 0x47737e
lea eax, [edi + 0x44]
mov ecx, dword [edi + 0x60]
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [edi + 0x60]
push eax
mov ecx, edi
call fcn.004771a0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov eax, dword [edi + 0x5c]
mov ecx, 6
mov edx, eax
and edx, ecx
cmp dl, cl
mov dword [esp + 0x3c], ebp
jne 0x4773ef
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 2
call fcn.00477010
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xa
call fcn.00477010
mov dword [esp + 0x14], 0xb
jmp 0x4774d7
mov edx, eax
and edx, 2
cmp dl, 2
jne 0x47742e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 3
call fcn.00477010
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebx
call fcn.00477010
mov dword [esp + 0x14], 5
jmp 0x4774d7
mov edx, eax
and edx, 5
cmp dl, 5
jne 0x47745c
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.00477010
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
push ecx
jmp 0x4774dc
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x477498
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00477010
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 7
call fcn.00477010
mov dword [esp + 0x14], 2
jmp 0x4774d7
mov edx, eax
and edx, ebx
cmp dl, 4
jne 0x4774c2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00477010
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 7
push ecx
jmp 0x4774dc
mov edx, eax
mov eax, 1
and edx, eax
cmp dl, al
mov dword [esp + 0x14], eax
je 0x47743c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call fcn.00477010
test dword [edi + 0x5c], 0x4000
je 0x477504
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 9
call fcn.00477010
xor ebx, ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
mov dword [esp + 0x14], ebx
je 0x4776b1
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x4776b1
push 0x54
call fcn.0048e9fc
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4776a9
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esi + 4], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi], vtable.wly::CButton2X.0
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov eax, 0xb56725
push 0xc
mov ecx, esi
mov dword [esi + 0x40], 0x1f5600
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
call fcn.00414c70
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4775a5
mov ecx, dword [esp + 0x2c]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x4775ae
call fcn.0048ed51
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx*4]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ebp
push 0x50000000
push ebp
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], ebp
mov edx, dword [edi + 4]
mov dword [esp + 0x30], esp
push edx
mov ecx, esi
call fcn.004768e0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477673
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x4775fd
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x477606
call fcn.0048ed51
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + ebx*4]
push ecx
mov ecx, edi
call fcn.00473620
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477673
cmp dword [edi + 0x1e0], ebp
jne 0x477665
mov ecx, dword [edi + 0x1b4]
push str.IDB_BITMAP_BTN
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ebx, eax
mov eax, dword [edi + 0x1e0]
cmp eax, ebp
je 0x47765b
cmp eax, ebx
je 0x47765b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x1e0], ebx
mov ebx, dword [esp + 0x14]
mov edx, dword [edi + 0x1e0]
push edx
mov ecx, esi
call fcn.00414bb0
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x477688
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x477691
call fcn.0048ed51
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + ebx*4]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 0x68]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call fcn.00476ee0
add ebx, 1
jmp 0x477506
mov eax, dword [edi + 0x5c]
mov edx, eax
and edx, 0x40
cmp dl, 0x40
jne 0x4776c6
mov ebx, dword [edi + 0x84]
jmp 0x4776f5
mov ecx, eax
and ecx, 0x30
cmp cl, 0x30
jne 0x4776d8
mov ebx, dword [edi + 0x80]
jmp 0x4776f5
mov edx, eax
and edx, 0x20
cmp dl, 0x20
jne 0x4776e7
mov ebx, dword [edi + 0x7c]
jmp 0x4776f5
and eax, 0x10
cmp al, 0x10
jne 0x477777
mov ebx, dword [edi + 0x78]
cmp ebx, ebp
je 0x477777
push 4
call fcn.0048e9fc
add esp, 4
cmp eax, ebp
je 0x47770d
mov dword [eax], ebp
mov esi, eax
jmp 0x47770f
xor esi, esi
cmp esi, ebp
mov dword [edi + 0x64], esi
je 0x477777
mov ecx, dword [0x4e02b8]
mov eax, dword [edi + 4]
mov edx, dword [0x4dfc98]
push ebp
push ecx
mov ecx, dword [0x4dfc8c]
push ebp
push eax
mov eax, dword [0x4dfc90]
sub edx, eax
push edx
mov edx, dword [0x4dfc94]
sub edx, ecx
push edx
push eax
push ecx
push 0x5000000e
push ebp
push str.STATIC
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi], eax
mov esi, dword [edi + 0x64]
cmp esi, ebp
je 0x477777
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477777
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474a70
mov eax, dword [edi + 0x5c]
mov edx, eax
and edx, 0x300
xor esi, esi
cmp edx, 0x300
jne 0x477793
mov esi, 3
jmp 0x4777ad
test eax, 0x200
je 0x4777a1
mov esi, 2
jmp 0x4777ad
test eax, 0x100
je 0x4777ad
mov esi, 1
mov ecx, dword [edi + 0x6c]
cmp ecx, ebp
je 0x477840
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp eax, esi
jbe 0x477840
cmp ecx, ebp
je 0x4777d4
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4777d9
call fcn.0048ed51
mov eax, dword [edi + 0x6c]
cmp dword [eax + esi*8 + 4], ebp
je 0x477840
mov ecx, eax
cmp ecx, ebp
je 0x4777f4
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4777f9
call fcn.0048ed51
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 0x477840
mov ecx, dword [edi + 0x6c]
cmp ecx, ebp
je 0x477824
mov eax, dword [edi + 0x70]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x477829
call fcn.0048ed51
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + esi*8]
mov edx, dword [edi + 4]
push ebp
push ecx
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test dword [edi + 0x5c], 0x10000
je 0x477853
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x477864
push eax
call fcn.0048d433
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret