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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
call fcn.00478b90
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x2c], ebx
call fcn.00429270
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x47992c
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x47990e
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x28]
push 0x4b9c40
push 0
push 0x4d00fc
call fcn.00447670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x4798e1
push edi
mov ecx, ebx
call fcn.00485050
mov dword [esp + 0x20], eax
cmp eax, dword [ebx + 0x10]
jae 0x4798e1
mov ecx, dword [0x4e59cc]
mov edi, eax
push 1
push 0
push 0xffffffffffffffff
shl edi, 6
add edi, dword [ebx + 0x18]
push 0x4b9d08
call fcn.004a0a20
mov eax, dword [0x4e6584]
mov dword [esp + 0x60], eax
mov eax, dword [0x4e6580]
mov dword [esp + 0x64], eax
lea eax, [esi - 1]
mov dword [0x4e6584], 0
mov dword [0x4e6580], 0
mov byte [esp + 0xf], 0
cmp eax, 0xc
ja case.default.0x479996
jmp dword [eax*4 + 0x47a8dc]
push edi
lea eax, [esp + 0x8c]
push eax
call fcn.00482780
push dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, ebx
push eax
push edi
lea eax, [esp + 0x94]
push eax
push dword [ebp + 8]
call fcn.0047fae0
mov esi, eax
jmp 0x479da9
mov cl, byte [edi + 4]
movzx eax, cl
dec eax
cmp eax, 0x18
ja case.0x4799e4.7
movzx eax, byte [eax + 0x47a948]
jmp dword [eax*4 + 0x47a910]
mov al, byte [edi + 5]
shr al, 6
and al, 1
mov byte [esp + 0xf], al
jmp case.0x4799e4.4
lea eax, [esp + 0x38]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov esi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
movzx ecx, word [esi]
cmp ecx, 0x20
je 0x479a3f
cmp ecx, 9
jne 0x479a44
add esi, 2
jmp 0x479a32
cmp ecx, 0x2a
jne 0x479b33
nop dword [eax]
mov edx, 0x4d05d4
mov ecx, esi
call fcn.00406570
mov ebx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x479a86
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479a70
sub ecx, edx
sar ecx, 1
lea ebx, [esi + ecx*2]
mov dword [esp + 0x10], ebx
movzx eax, word [ebx]
add esi, 2
push 4
mov dword [esp + 0x18], eax
xor eax, eax
push str.Icon
push esi
mov word [ebx], ax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x479ab8
lea ecx, [esi + 8]
call fcn.004180f0
mov dword [esp + 0x18], eax
jmp 0x479ae9
mov cx, word [esi]
call fcn.004130a0
movzx eax, ax
cmp eax, 0x48
je 0x479add
cmp eax, 0x57
jne 0x479ae9
lea ecx, [esi + 2]
call fcn.004180f0
mov edx, eax
mov dword [esp + 0x1c], edx
jmp 0x479aed
lea ecx, [esi + 2]
call fcn.004180f0
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, ebx
mov word [ebx], ax
movzx ecx, ax
nop dword [eax]
cmp cx, 0x20
je 0x479b0c
cmp cx, 9
jne 0x479b15
movzx ecx, word [esi + 2]
add esi, 2
jmp 0x479b00
cmp cx, 0x2a
je 0x479a50
mov ebx, dword [esp + 0x2c]
test ax, ax
mov eax, dword [esp + 0x10]
je 0x479b33
add eax, 2
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
push dword [esp + 0x24]
push edx
push eax
push edi
call fcn.00482a70
test eax, eax
je 0x47a37a
mov esi, dword [esp + 0x10]
mov byte [esp + 0xf], 1
jmp 0x479f4d
cmp esi, 2
jne case.0x4799e4.4
mov ecx, dword [ebp + 0x10]
lea edx, [esi - 1]
push 0
push 0
push 0
call fcn.0049c4a0
add esp, 0xc
test eax, eax
je case.0x4799e4.4
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.004180f0
test eax, eax
je 0x479ba6
cmp eax, 1
je 0x479ba6
cmp byte [edi + 4], 5
jne 0x479f4d
cmp eax, 0xffffffff
jne 0x479f4d
jmp 0x479bab
cmp eax, 0xffffffff
jne 0x479bb0
mov eax, 2
cmp byte [edi + 4], 6
jne 0x479bc9
push eax
mov eax, dword [esp + 0x24]
mov ecx, ebx
push eax
push edi
call fcn.00487b90
jmp case.0x4799e4.10
push 0
push eax
push 0xf1
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
mov ebx, dword [ebp + 0x10]
cmp word [ebx], 0
je 0x479c00
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
je 0x479c00
mov ecx, ebx
call fcn.0049d390
mov esi, eax
jmp 0x479c02
mov esi, ebx
test esi, esi
mov eax, ebx
cmovne eax, esi
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
test esi, esi
je case.0x4799e4.10
cmp esi, ebx
je case.0x4799e4.10
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp case.0x4799e4.10
cmp esi, 2
jne 0x479c87
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 0
je 0x479c6e
push 1
lea edx, [esp + 0x6c]
call fcn.0049c100
add esp, 4
test eax, eax
je case.0x4799e4.10
lea eax, [esp + 0x68]
push eax
push 0
push 0x1002
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
lea eax, [esp + 0x68]
push eax
push 1
push 0x1002
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
push 0xfffffffffffffff0
push dword [edi]
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [ebp + 0x10]
mov esi, eax
and esi, 0xfffffff2
cmp word [ebx], 0
je 0x479cba
push str.LongDate
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x479ce3
or esi, 4
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor eax, eax
cmp byte [esp + 0xf], al
cmovne eax, ebx
push eax
push 0
push 0x1032
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
push str.Time
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x479cfb
or esi, 9
jmp 0x479cba
mov byte [esp + 0xf], 1
jmp 0x479cc5
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je case.0x4799e4.10
lea edx, [esp + 0x68]
mov ecx, eax
call fcn.0049c070
mov esi, eax
test esi, esi
je case.0x4799e4.4
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 2
je 0x479df0
cmp esi, 1
jne 0x479d45
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp + 0x78], xmm0
lea eax, [esp + 0x68]
push eax
push 0
push 0x1006
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, byte [edi + 6]
mov ecx, ebx
push eax
call fcn.00488520
test eax, eax
je case.0x4799e4.10
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x4799e4.10
lea eax, [esp + 0x38]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, 1
mov edi, dword [esp + 0x60]
test edi, edi
je 0x479de5
mov eax, dword [0x4e6584]
test eax, eax
je 0x479dd6
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4e6580], 0x400000
jbe 0x479dd6
dec dword [0x4e657c]
mov eax, dword [esp + 0x64]
mov dword [0x4e6584], edi
mov dword [0x4e6580], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x68]
push eax
push 0
push 0x1002
jmp 0x479d51
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00487a50
movzx eax, ax
push eax
push 0x401
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
cmp word [ecx], 0x2b
jne 0x479e5c
add ecx, 2
call fcn.004180f0
cmp byte [edi + 5], 0
mov esi, eax
mov eax, dword [edi]
push 0
push 0
jge 0x479e4f
push 0x472
push eax
call ebx
add esi, eax
jmp 0x479e63
push 0x468
push eax
call ebx
cwde
add esi, eax
jmp 0x479e63
call fcn.004180f0
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.0x4799e4.10
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 0x2b
jne 0x479ec0
add ecx, 2
call fcn.004180f0
cmp byte [edi + 5], 0
mov ebx, eax
jge 0x479e9a
neg ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
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.0x4799e4.10
call fcn.004180f0
push eax
push edi
call fcn.00487d50
push eax
push 1
push 0x405
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
mov ecx, dword [ebp + 0x10]
push 0
cmp word [ecx], 0x2b
jne 0x479f07
add ecx, 2
call fcn.004180f0
push eax
push 0x403
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
call fcn.004180f0
push eax
push 0x402
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp case.0x4799e4.10
cmp cl, 8
jne 0x479f66
cmp esi, 3
jne 0x479f66
push 0
push 0xffffffffffffffff
push 0x14e
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 0x10]
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [esp + 0xf], 0
jne 0x479d75
jmp case.0x4799e4.10
mov esi, dword [ebp + 0x10]
mov ax, word [esi]
cmp ax, word [ebx + 0x46]
jne 0x479f9e
add esi, 2
cmp cl, 9
je 0x479f8c
cmp cl, 0x13
mov eax, 0x1309
mov edx, 0x14b
cmovne eax, edx
jmp 0x479f91
mov eax, 0x184
push 0
push 0
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 0
push esi
push edi
mov ecx, ebx
call fcn.004827f0
cmp byte [edi + 4], 0x13
jne case.0x4799e4.10
push dword [edi]
mov ecx, ebx
call fcn.00488df0
push 0
push edi
mov ecx, ebx
call fcn.004881f0
jmp case.0x4799e4.10
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], connect
mov dword [esp + 0x18], connect
mov dword [esp + 0x10], connect
movzx ecx, word [eax]
mov dword [esp + 0x1c], connect
test cx, cx
je 0x47a093
mov edx, ecx
lea esi, [eax + 2]
mov ecx, edx
call fcn.004130a0
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x47a019.73
movzx eax, byte [eax + 0x47a978]
jmp dword [eax*4 + 0x47a964]
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov ecx, ebx
push eax
call fcn.004498b0
mov dword [esp + 0x10], eax
jmp case.0x47a019.73
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov ecx, ebx
push eax
call fcn.004498b0
mov dword [esp + 0x1c], eax
jmp case.0x47a019.73
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov ecx, ebx
push eax
call fcn.004498b0
mov dword [esp + 0x20], eax
jmp case.0x47a019.73
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov ecx, ebx
push eax
call fcn.004498b0
mov dword [esp + 0x18], eax
movzx ecx, word [esi]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x47a000
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esp + 0x20], 0x80000000
mov edx, dword [esp + 0x30]
cmovne edx, dword [esp + 0x20]
cmp dword [esp + 0x18], 0x80000000
mov eax, dword [esp + 0x34]
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
cmp eax, 0x80000000
jne 0x47a103
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
jmp 0x47a105
mov ecx, eax
mov eax, dword [esp + 0x10]
cmp eax, 0x80000000
jne 0x47a118
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push 1
push ecx
push eax
push dword [esp + 0x40]
push edx
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
test eax, eax
je 0x47a37a
mov al, byte [edi + 4]
cmp al, 0x11
jne 0x47a1b4
push 0
push 1
push 0x421
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x421
push dword [edi]
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x47a18c
push ecx
push 1
push 0x420
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47a213
push eax
push 0
push 0x420
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x47a213
cmp al, 0x13
jne 0x47a213
xor eax, eax
mov ecx, 2
cmp dword [esp + 0x1c], 0x80000000
push str.ahk_autosize
push dword [edi]
cmove ecx, eax
cmp dword [esp + 0x18], 0x80000000
setne al
or ecx, eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetPropW]
mov ecx, dword [esp + 0x14]
test ecx, eax
je 0x47a213
not ecx
and eax, ecx
mov ecx, dword [edi]
je 0x47a207
push eax
push str.ahk_autosize
push ecx
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x47a213
push str.ahk_autosize
push ecx
call dword [sym.imp.USER32.dll_RemovePropW]
cmp esi, 5
jne 0x47a247
lea eax, [esp + 0x38]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x20]
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 + 0x1c]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0x10], ecx
jbe 0x47a31a
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x18]
cmp byte [eax + edi + 4], 0x19
je 0x47a305
lea ecx, [esp + 0x50]
push ecx
push dword [eax + edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x47a2c5
mov ecx, dword [ecx + 0x14]
jmp 0x47a2c7
xor ecx, ecx
sub ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x58]
add ecx, dword [esp + 0x48]
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x47a2e2
mov eax, dword [eax + 0x14]
jmp 0x47a2e4
xor eax, eax
sub eax, dword [esp + 0x54]
add eax, dword [esp + 0x5c]
add eax, dword [esp + 0x4c]
cmp ecx, esi
cmovle ecx, esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x47a305
mov ecx, eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x18]
add edi, 0x40
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x10]
jb 0x47a280
cmp esi, dword [ebx + 0x90]
je 0x47a328
mov dword [ebx + 0x90], esi
cmp ecx, dword [ebx + 0x94]
je 0x47a336
mov dword [ebx + 0x94], ecx
test dword [ebx + 0x3c], 0x300000
je case.0x4799e4.10
lea eax, [esp + 0x50]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x58]
mov ecx, ebx
push 0
push dword [esp + 0x60]
call fcn.004788d0
add esp, 8
jmp case.0x4799e4.10
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
jne case.0x4799e4.10
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x47a7ff
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
mov esi, eax
jmp 0x479da9
mov al, byte [edi + 5]
cmp esi, 7
jne 0x47a3b5
and al, 0xef
jmp 0x47a3b7
or al, 0x10
mov byte [edi + 5], al
mov ecx, ebx
movzx eax, byte [edi + 6]
push eax
call fcn.00488520
mov dword [esp + 0x14], eax
test eax, eax
je 0x47a409
push 0xfffffffffffffff0
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000000
jne case.0x4799e4.10
mov eax, dword [esp + 0x14]
push 0
push 0
push 0x130b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, byte [edi + 7]
cmp eax, ecx
je 0x47a409
cmp eax, 0xffffffff
jne case.0x4799e4.10
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [ebx + 4]
jne 0x47a42f
mov eax, dword [edi]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x47a431
mov byte [esp + 0xf], 1
jmp 0x47a436
mov ecx, dword [edi]
mov byte [esp + 0xf], 0
xor eax, eax
cmp esi, 7
sete al
push eax
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esp + 0xf], 0
je 0x47a460
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
jne 0x47a460
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [edi + 4], 0x13
jne case.0x4799e4.10
push 0
push edi
mov ecx, ebx
call fcn.004881f0
jmp case.0x4799e4.10
mov al, byte [edi + 5]
cmp esi, 9
jne 0x47a485
and al, 0xf7
jmp 0x47a487
or al, 8
mov byte [edi + 5], al
mov ecx, ebx
movzx eax, byte [edi + 6]
push eax
call fcn.00488520
mov dword [esp + 0x14], eax
test eax, eax
je 0x47a4d9
push 0xfffffffffffffff0
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je case.0x4799e4.10
mov eax, dword [esp + 0x14]
push 0
push 0
push 0x130b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, byte [edi + 7]
cmp eax, ecx
je 0x47a4d9
cmp eax, 0xffffffff
jne case.0x4799e4.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.0x4799e4.10
push 0
push edi
mov ecx, ebx
call fcn.004881f0
jmp case.0x4799e4.10
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
mov edx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], edx
movzx edx, word [ebx + 0x46]
mov dword [esp + 0x24], edx
cmp cx, word [esp + 0x24]
movzx ebx, dx
movzx edx, dx
mov dword [esp + 0x18], edx
lea edx, [eax + 2]
cmovne edx, eax
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x2c]
xor eax, eax
cmp cx, word [esp + 0x24]
mov dword [esp + 0x10], edx
sete al
cmp byte [edi + 4], 0x13
mov dword [esp + 0x1c], eax
jne 0x47a640
cmp esi, 0xb
jne 0x47a57b
mov ecx, dword [esp + 0x10]
lea edx, [esi - 0xa]
push 0
push 0
push 0
call fcn.0049c4a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jmp 0x47a57e
cmp esi, 0xc
jne 0x47a58d
push 0
push edx
push edi
call fcn.00488560
mov esi, eax
jmp 0x47a597
mov ecx, edx
call fcn.004180f0
lea esi, [eax - 1]
cmp esi, 0xff
ja 0x47a37a
push 0
push 0
push 0x130b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
cmp word [esp + 0x14], ax
jne 0x47a600
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x100
jne 0x47a600
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
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.0x4799e4.10
jmp 0x47a37a
push 0
push esi
push 0x130c
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x47a37a
cmp dword [esp + 0x2c], esi
je case.0x4799e4.10
mov eax, dword [esp + 0x18]
mov ecx, ebx
cmp word [esp + 0x14], ax
sete al
movzx eax, al
push eax
push edi
call fcn.004881f0
jmp case.0x4799e4.10
movzx eax, word [ebx + 0x46]
cmp word [edx], ax
jne 0x47a663
mov ecx, dword [esp + 0x48]
add edx, 2
xor eax, eax
mov dword [esp + 0x10], edx
cmp word [esp + 0x30], cx
sete al
inc eax
mov dword [esp + 0x1c], eax
cmp esi, 0xb
jne 0x47a687
mov ecx, dword [esp + 0x10]
lea edx, [esi - 0xa]
push 0
push 0
push 0
call fcn.0049c4a0
add esp, 0xc
mov ecx, 0xc
test eax, eax
cmove esi, ecx
mov al, byte [edi + 4]
cmp al, 7
jb 0x47a37a
cmp al, 8
jbe 0x47a6e3
cmp al, 9
jne 0x47a37a
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x808
je 0x47a6c9
cmp esi, 0xb
mov dword [esp + 0x14], 0x20000
mov eax, 0x185
mov ecx, 0x18f
cmovne eax, ecx
jmp 0x47a6f8
cmp esi, 0xb
mov dword [esp + 0x14], 0x20000
mov eax, 0x18c
mov ecx, 0x186
cmove eax, ecx
jmp 0x47a6f8
xor eax, eax
mov dword [esp + 0x14], 0x90000
cmp esi, 0xb
sete al
add eax, 0x14d
mov dword [esp + 0x18], eax
cmp esi, 0xc
jne 0x47a74d
mov ecx, dword [edi]
push dword [esp + 0x10]
push 0xffffffffffffffff
cmp eax, 0x18f
jne 0x47a73a
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ecx
call esi
cmp eax, 0xffffffff
je 0x47a37a
push eax
push 1
push 0x185
push dword [edi]
call esi
cmp eax, 0xffffffff
je 0x47a37a
jmp 0x47a7a2
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x47a37a
jmp 0x47a7a2
mov ecx, dword [esp + 0x10]
call fcn.004180f0
lea esi, [eax - 1]
cmp esi, 0xffffffff
jl 0x47a37a
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
cmp ecx, 0x185
jne 0x47a78a
push esi
not esi
shr esi, 0x1f
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x47a37a
jmp 0x47a7a2
push 0
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x47a7a2
cmp esi, eax
jne 0x47a37a
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, 3
movzx edx, cx
test eax, eax
je 0x47a7d7
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_SendMessageW]
mov eax, dword [esp + 0x1c]
mov ecx, esi
jmp 0x47a7d9
mov ecx, edx
cmp eax, 1
jbe case.0x4799e4.10
push dword [edi]
movzx eax, cx
or eax, dword [esp + 0x18]
push eax
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4799e4.10
mov ecx, dword [esp + 0x28]
push 0x4b9c40
push 0
push 0x4d00fc
call fcn.00447670
mov esi, eax
jmp 0x479da9
imul ecx, dword [ebx + 0x50], 0x94
mov eax, dword [0x4e72b4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ecx + eax + 0x90]
push 0x30
push dword [edi]
call esi
mov cl, byte [edi + 4]
cmp cl, 2
je case.0x47a871.12
cmp cl, 0x10
je case.0x47a871.12
cmp cl, 0x11
je case.0x47a871.12
cmp cl, 0x12
je case.0x47a871.12
cmp cl, 0xa
je 0x47a866
mov eax, dword [ebx + 0x54]
mov dword [edi + 0x10], eax
movzx eax, cl
add eax, 0xfffffff6
cmp eax, 4
ja case.0x47a871.12
jmp dword [eax*4 + 0x47a98c]
push dword [ebx + 0x54]
push 0
push 0x1024
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x479d9e
push dword [ebx + 0x54]
push 0
push 0x111e
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x479d9e
push dword [ebx + 0x54]
push 1
push 0x1006
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x479d9e
push dword [ebx + 0x54]
push 1
push 0x100a
push dword [edi]
call esi
push 1
push 0
push dword [edi]
jmp 0x479d9e