Function at 0x478470
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edi
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
call fcn.004777e0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x20], ebx
call fcn.00428e20
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4784fc
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x4784de
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
push 0x4d0335
push 0
push 0x4d07c0
call fcn.00446950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x4784b1
push edi
mov ecx, ebx
call fcn.00483830
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 0x10]
jae 0x4784b1
mov ecx, dword [0x4e7934]
mov edi, eax
push 1
push 0
push 0xffffffffffffffff
shl edi, 6
add edi, dword [ebx + 0x18]
push 0x4d03bc
call fcn.0049e6b0
mov eax, dword [0x4e846c]
mov dword [esp + 0x58], eax
mov eax, dword [0x4e8468]
mov dword [esp + 0x5c], eax
lea eax, [esi - 1]
mov dword [0x4e846c], 0
mov dword [0x4e8468], 0
mov byte [esp + 0xe], 0
cmp eax, 0xc
ja case.default.0x478566
jmp dword [eax*4 + 0x47941c]
push edi
lea eax, [esp + 0x84]
push eax
call fcn.00481060
push dword [ebp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, ebx
push eax
push edi
lea eax, [esp + 0x8c]
push eax
push dword [ebp + 8]
call fcn.0047e410
mov esi, eax
jmp 0x47894e
mov cl, byte [edi + 4]
movzx eax, cl
dec eax
cmp eax, 0x18
ja case.0x4785b4.7
movzx eax, byte [eax + 0x479488]
jmp dword [eax*4 + 0x479450]
mov al, byte [edi + 5]
shr al, 6
and al, 1
mov byte [esp + 0xe], al
jmp case.0x4785b4.4
lea eax, [esp + 0x30]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov esi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov cl, byte [esi]
cmp cl, 0x20
je 0x47860e
cmp cl, 9
jne 0x478611
inc esi
jmp 0x478602
cmp cl, 0x2a
jne 0x4786df
nop word [eax + eax]
mov edx, 0x4d5ff4
mov ecx, esi
call fcn.00405fc0
mov ebx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x478650
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x478640
sub ecx, edx
lea ebx, [ecx + esi]
mov dword [esp + 0x10], ebx
mov al, byte [ebx]
inc esi
push 4
push str.Icon
push esi
mov byte [esp + 0x1b], al
mov byte [ebx], 0
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x47867c
lea ecx, [esi + 4]
call fcn.00417810
mov dword [esp + 0x18], eax
jmp 0x4786a7
mov cl, byte [esi]
call fcn.00412890
cmp al, 0x48
je 0x47869b
cmp al, 0x57
jne 0x4786a7
lea ecx, [esi + 1]
call fcn.00417810
mov edx, eax
mov dword [esp + 0x14], edx
jmp 0x4786ab
lea ecx, [esi + 1]
call fcn.00417810
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0xf]
mov esi, ebx
mov byte [ebx], al
mov cl, al
cmp cl, 0x20
je 0x4786bf
cmp cl, 9
jne 0x4786c5
mov cl, byte [esi + 1]
inc esi
jmp 0x4786b5
cmp cl, 0x2a
je 0x478620
mov ebx, dword [esp + 0x20]
test al, al
mov eax, dword [esp + 0x10]
je 0x4786df
inc eax
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push edx
push eax
push edi
call fcn.00481330
test eax, eax
je 0x478efa
mov esi, dword [esp + 0x10]
mov byte [esp + 0xe], 1
jmp 0x478ae8
cmp esi, 2
jne case.0x4785b4.4
mov ecx, dword [ebp + 0x10]
lea edx, [esi - 1]
push 0
push 0
push 0
call fcn.0049a390
add esp, 0xc
test eax, eax
je case.0x4785b4.4
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.00417810
test eax, eax
je 0x478752
cmp eax, 1
je 0x478752
cmp byte [edi + 4], 5
jne 0x478ae8
cmp eax, 0xffffffff
jne 0x478ae8
jmp 0x478757
cmp eax, 0xffffffff
jne 0x47875c
mov eax, 2
cmp byte [edi + 4], 6
jne 0x478775
push eax
mov eax, dword [esp + 0x20]
mov ecx, ebx
push eax
push edi
call fcn.00486280
jmp case.0x4785b4.10
push 0
push eax
push 0xf1
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
mov ebx, dword [ebp + 0x10]
cmp byte [ebx], 0
je 0x4787ab
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
je 0x4787ab
mov ecx, ebx
call fcn.0049b1f0
mov esi, eax
jmp 0x4787ad
mov esi, ebx
test esi, esi
mov eax, ebx
cmovne eax, esi
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
test esi, esi
je case.0x4785b4.10
cmp esi, ebx
je case.0x4785b4.10
push esi
call fcn.004b2343
add esp, 4
jmp case.0x4785b4.10
cmp esi, 2
jne 0x478830
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
je 0x478817
push 1
lea edx, [esp + 0x64]
call fcn.0049a000
add esp, 4
test eax, eax
je case.0x4785b4.10
lea eax, [esp + 0x60]
push eax
push 0
push 0x1002
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
lea eax, [esp + 0x60]
push eax
push 1
push 0x1002
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
push 0xfffffffffffffff0
push dword [edi]
mov byte [esp + 0x16], 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [ebp + 0x10]
mov esi, eax
and esi, 0xfffffff2
cmp byte [ebx], 0
je 0x478861
push str.LongDate
push ebx
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x47888a
or esi, 4
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongA]
xor eax, eax
cmp byte [esp + 0xe], al
cmovne eax, ebx
push eax
push 0
push 0x1005
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
push str.Time
push ebx
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x4788a1
or esi, 9
jmp 0x478861
mov byte [esp + 0xe], 1
jmp 0x47886c
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je case.0x4785b4.10
lea edx, [esp + 0x60]
mov ecx, eax
call fcn.00499f80
mov esi, eax
test esi, esi
je case.0x4785b4.4
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 2
je 0x478994
cmp esi, 1
jne 0x4788ea
movups xmm0, xmmword [esp + 0x60]
movups xmmword [esp + 0x70], xmm0
lea eax, [esp + 0x60]
push eax
push 0
push 0x1006
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, byte [edi + 6]
mov ecx, ebx
push eax
call fcn.00486c30
test eax, eax
je case.0x4785b4.10
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x4785b4.10
lea eax, [esp + 0x30]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, 1
mov edi, dword [esp + 0x58]
test edi, edi
je 0x478989
mov eax, dword [0x4e846c]
test eax, eax
je 0x47897a
push eax
call fcn.004b2343
add esp, 4
cmp dword [0x4e8468], 0x400000
jbe 0x47897a
dec dword [0x4e8464]
mov eax, dword [esp + 0x5c]
mov dword [0x4e846c], edi
mov dword [0x4e8468], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x60]
push eax
push 0
push 0x1002
jmp 0x4788f6
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00486150
movzx eax, ax
push eax
push 0x401
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [ecx], 0x2b
jne 0x4789fd
inc ecx
call fcn.00417810
cmp byte [edi + 5], 0
mov esi, eax
mov eax, dword [edi]
push 0
push 0
jge 0x4789f0
push 0x472
push eax
call ebx
add esi, eax
jmp 0x478a04
push 0x468
push eax
call ebx
cwde
add esi, eax
jmp 0x478a04
call fcn.00417810
mov esi, eax
movsx eax, byte [edi + 5]
sar eax, 0x1f
push esi
and eax, 0xa
push 0
add eax, 0x467
push eax
push dword [edi]
call ebx
jmp case.0x4785b4.10
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0x2b
jne 0x478a5e
inc ecx
call fcn.00417810
cmp byte [edi + 5], 0
mov ebx, eax
jge 0x478a38
neg ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x400
push dword [edi]
call esi
add eax, ebx
push eax
push 1
push 0x405
push dword [edi]
call esi
jmp case.0x4785b4.10
call fcn.00417810
push eax
push edi
call fcn.00486440
push eax
push 1
push 0x405
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
mov ecx, dword [ebp + 0x10]
push 0
cmp byte [ecx], 0x2b
jne 0x478aa2
inc ecx
call fcn.00417810
push eax
push 0x403
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
call fcn.00417810
push eax
push 0x402
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp case.0x4785b4.10
cmp cl, 8
jne 0x478b01
cmp esi, 3
jne 0x478b01
push 0
push 0xffffffffffffffff
push 0x14e
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 0x10]
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [esp + 0xe], 0
jne 0x47891a
jmp case.0x4785b4.10
mov esi, dword [ebp + 0x10]
mov al, byte [esi]
cmp al, byte [ebx + 0x46]
jne 0x478b35
inc esi
cmp cl, 9
je 0x478b23
cmp cl, 0x13
mov eax, 0x1309
mov edx, 0x14b
cmovne eax, edx
jmp 0x478b28
mov eax, 0x184
push 0
push 0
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 0
push esi
push edi
mov ecx, ebx
call fcn.004810d0
cmp byte [edi + 4], 0x13
jne case.0x4785b4.10
push dword [edi]
mov ecx, ebx
call fcn.004874d0
push 0
push edi
mov ecx, ebx
call fcn.004868e0
jmp case.0x4785b4.10
mov ecx, dword [ebp + 0x10]
mov eax, connect
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov al, byte [ecx]
test al, al
je 0x478c11
lea esi, [ecx + 1]
mov cl, al
call fcn.00412890
movsx eax, al
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x478ba1.73
movzx eax, byte [eax + 0x4794b8]
jmp dword [eax*4 + 0x4794a4]
push esi
call fcn.004b2c14
add esp, 4
mov ecx, ebx
push eax
call fcn.00448aa0
mov dword [esp + 0x10], eax
jmp case.0x478ba1.73
push esi
call fcn.004b2c14
add esp, 4
mov ecx, ebx
push eax
call fcn.00448aa0
mov dword [esp + 0x14], eax
jmp case.0x478ba1.73
push esi
call fcn.004b2c14
add esp, 4
mov ecx, ebx
push eax
call fcn.00448aa0
mov dword [esp + 0x1c], eax
jmp case.0x478ba1.73
push esi
call fcn.004b2c14
add esp, 4
mov ecx, ebx
push eax
call fcn.00448aa0
mov dword [esp + 0x18], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x478b88
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esp + 0x1c], 0x80000000
mov edx, dword [esp + 0x40]
cmovne edx, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0x80000000
mov eax, dword [esp + 0x44]
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], edx
cmp eax, 0x80000000
jne 0x478c81
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
jmp 0x478c83
mov ecx, eax
mov eax, dword [esp + 0x10]
cmp eax, 0x80000000
jne 0x478c96
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 1
push ecx
push eax
push dword [esp + 0x50]
push edx
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
test eax, eax
je 0x478efa
mov al, byte [edi + 4]
cmp al, 0x11
jne 0x478d32
push 0
push 1
push 0x421
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x421
push dword [edi]
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x478d0a
push ecx
push 1
push 0x420
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x478d91
push eax
push 0
push 0x420
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x478d91
cmp al, 0x13
jne 0x478d91
xor eax, eax
mov ecx, 2
cmp dword [esp + 0x14], 0x80000000
push str.ahk_autosize
push dword [edi]
cmove ecx, eax
cmp dword [esp + 0x18], 0x80000000
setne al
or ecx, eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_GetPropA]
mov ecx, dword [esp + 0x24]
test ecx, eax
je 0x478d91
not ecx
and eax, ecx
mov ecx, dword [edi]
je 0x478d85
push eax
push str.ahk_autosize
push ecx
call dword [sym.imp.USER32.dll_SetPropA]
jmp 0x478d91
push str.ahk_autosize
push ecx
call dword [sym.imp.USER32.dll_RemovePropA]
cmp esi, 5
jne 0x478dc5
lea eax, [esp + 0x30]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [edi + 0x14], eax
xor esi, esi
mov eax, dword [esp + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0x10], ecx
jbe 0x478e9a
xor edi, edi
nop dword [eax + eax]
mov eax, dword [ebx + 0x18]
cmp byte [eax + edi + 4], 0x19
je 0x478e85
lea ecx, [esp + 0x48]
push ecx
push dword [eax + edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x478e45
mov ecx, dword [ecx + 0x14]
jmp 0x478e47
xor ecx, ecx
sub ecx, dword [esp + 0x48]
add ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x478e62
mov eax, dword [eax + 0x14]
jmp 0x478e64
xor eax, eax
sub eax, dword [esp + 0x4c]
add eax, dword [esp + 0x54]
add eax, dword [esp + 0x28]
cmp ecx, esi
cmovle ecx, esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x478e85
mov ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x18]
add edi, 0x40
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x478e00
cmp esi, dword [ebx + 0x90]
je 0x478ea8
mov dword [ebx + 0x90], esi
cmp ecx, dword [ebx + 0x94]
je 0x478eb6
mov dword [ebx + 0x94], ecx
test dword [ebx + 0x3c], 0x300000
je case.0x4785b4.10
lea eax, [esp + 0x48]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x50]
mov ecx, ebx
push 0
push dword [esp + 0x58]
call fcn.00477520
add esp, 8
jmp case.0x4785b4.10
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
jne case.0x4785b4.10
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x479345
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
mov esi, eax
jmp 0x47894e
mov al, byte [edi + 5]
cmp esi, 7
jne 0x478f35
and al, 0xef
jmp 0x478f37
or al, 0x10
mov byte [edi + 5], al
mov ecx, ebx
movzx eax, byte [edi + 6]
push eax
call fcn.00486c30
mov dword [esp + 0x24], eax
test eax, eax
je 0x478f89
push 0xfffffffffffffff0
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne case.0x4785b4.10
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x130b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ecx, byte [edi + 7]
cmp eax, ecx
je 0x478f89
cmp eax, 0xffffffff
jne case.0x4785b4.10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [ebx + 4]
jne 0x478faf
mov eax, dword [edi]
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x478fb1
mov byte [esp + 0xe], 1
jmp 0x478fb6
mov ecx, dword [edi]
mov byte [esp + 0xe], 0
xor eax, eax
cmp esi, 7
sete al
push eax
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esp + 0xe], 0
je 0x478fe0
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
jne 0x478fe0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [edi + 4], 0x13
jne case.0x4785b4.10
push 0
push edi
mov ecx, ebx
call fcn.004868e0
jmp case.0x4785b4.10
mov al, byte [edi + 5]
cmp esi, 9
jne 0x479005
and al, 0xf7
jmp 0x479007
or al, 8
mov byte [edi + 5], al
mov ecx, ebx
movzx eax, byte [edi + 6]
push eax
call fcn.00486c30
mov dword [esp + 0x24], eax
test eax, eax
je 0x479059
push 0xfffffffffffffff0
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je case.0x4785b4.10
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x130b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ecx, byte [edi + 7]
cmp eax, ecx
je 0x479059
cmp eax, 0xffffffff
jne case.0x4785b4.10
xor eax, eax
mov ecx, 4
cmp esi, 9
cmove eax, ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi + 4], 0x13
jne case.0x4785b4.10
push 0
push edi
mov ecx, ebx
call fcn.004868e0
jmp case.0x4785b4.10
mov eax, dword [ebp + 0x10]
mov dl, byte [ebx + 0x46]
mov byte [esp + 0xf], dl
mov dh, byte [eax]
lea ecx, [eax + 1]
cmp dh, dl
mov byte [esp + 0xe], dh
cmovne ecx, eax
xor eax, eax
cmp dh, dl
mov dword [esp + 0x10], ecx
sete al
cmp byte [edi + 4], 0x13
mov dword [esp + 0x14], eax
jne 0x479198
cmp esi, 0xb
jne 0x4790d7
push 0
push 0
push 0
lea edx, [esi - 0xa]
call fcn.0049a390
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jmp 0x4790da
cmp esi, 0xc
jne 0x4790e9
push 0
push ecx
push edi
call fcn.00486c70
mov esi, eax
jmp 0x4790f1
call fcn.00417810
lea esi, [eax - 1]
cmp esi, 0xff
ja 0x478efa
push 0
push 0
push 0x130b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov cl, byte [esp + 0xe]
mov dword [esp + 0x24], eax
cmp cl, byte [esp + 0xf]
jne 0x479159
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x100
jne 0x479159
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push esi
push 0x1330
push dword [edi]
call ebx
push 0
push 0
push 0x130b
push dword [edi]
call ebx
cmp eax, esi
je case.0x4785b4.10
jmp 0x478efa
push 0
push esi
push 0x130c
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x478efa
cmp dword [esp + 0x24], esi
je case.0x4785b4.10
mov al, byte [esp + 0xe]
mov ecx, ebx
cmp al, byte [esp + 0xf]
sete al
movzx eax, al
push eax
push edi
call fcn.004868e0
jmp case.0x4785b4.10
cmp byte [ecx], dl
jne 0x4791ad
inc ecx
xor eax, eax
cmp dh, dl
mov dword [esp + 0x10], ecx
sete al
inc eax
mov dword [esp + 0x14], eax
cmp esi, 0xb
jne 0x4791cd
push 0
push 0
push 0
lea edx, [esi - 0xa]
call fcn.0049a390
add esp, 0xc
mov ecx, 0xc
test eax, eax
cmove esi, ecx
mov al, byte [edi + 4]
cmp al, 7
jb 0x478efa
cmp al, 8
jbe 0x479229
cmp al, 9
jne 0x478efa
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x808
je 0x47920f
cmp esi, 0xb
mov dword [esp + 0x20], 0x20000
mov eax, 0x185
mov ecx, 0x18f
cmovne eax, ecx
jmp 0x47923e
cmp esi, 0xb
mov dword [esp + 0x20], 0x20000
mov eax, 0x18c
mov ecx, 0x186
cmove eax, ecx
jmp 0x47923e
xor eax, eax
mov dword [esp + 0x20], 0x90000
cmp esi, 0xb
sete al
add eax, 0x14d
mov dword [esp + 0x18], eax
cmp esi, 0xc
jne 0x479293
mov ecx, dword [edi]
push dword [esp + 0x10]
push 0xffffffffffffffff
cmp eax, 0x18f
jne 0x479280
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x478efa
push eax
push 1
push 0x185
push dword [edi]
call esi
cmp eax, 0xffffffff
je 0x478efa
jmp 0x4792e8
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x478efa
jmp 0x4792e8
mov ecx, dword [esp + 0x10]
call fcn.00417810
lea esi, [eax - 1]
cmp esi, 0xffffffff
jl 0x478efa
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
cmp ecx, 0x185
jne 0x4792d0
push esi
not esi
shr esi, 0x1f
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x478efa
jmp 0x4792e8
push 0
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4792e8
cmp esi, eax
jne 0x478efa
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add ecx, 3
movzx edx, cx
test eax, eax
je 0x47931d
push dword [edi]
movzx esi, cx
mov eax, esi
or eax, 0x10000
push eax
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
mov ecx, esi
jmp 0x47931f
mov ecx, edx
cmp eax, 1
jbe case.0x4785b4.10
push dword [edi]
movzx eax, cx
or eax, dword [esp + 0x24]
push eax
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4785b4.10
mov ecx, dword [esp + 0x2c]
push 0x4d0335
push 0
push 0x4d07c0
call fcn.00446950
mov esi, eax
jmp 0x47894e
imul ecx, dword [ebx + 0x50], 0x54
mov eax, dword [0x4e919c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [ecx + eax + 0x50]
push 0x30
push dword [edi]
call esi
mov cl, byte [edi + 4]
cmp cl, 2
je case.0x4793b1.12
cmp cl, 0x10
je case.0x4793b1.12
cmp cl, 0x11
je case.0x4793b1.12
cmp cl, 0x12
je case.0x4793b1.12
cmp cl, 0xa
je 0x4793a6
mov eax, dword [ebx + 0x54]
mov dword [edi + 0x10], eax
movzx eax, cl
add eax, 0xfffffff6
cmp eax, 4
ja case.0x4793b1.12
jmp dword [eax*4 + 0x4794cc]
push dword [ebx + 0x54]
push 0
push 0x1024
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x478943
push dword [ebx + 0x54]
push 0
push 0x111e
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x478943
push dword [ebx + 0x54]
push 1
push 0x1006
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x478943
push dword [ebx + 0x54]
push 1
push 0x100a
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x478943