Function at 0x407680
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4fc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4febe0]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x114], eax
xor bl, bl
mov edx, 0x4d
mov byte [ebp - 0x109], bl
mov esi, eax
mov byte [ebp - 0x10d], bl
call fcn.0048d930
mov ecx, dword [0x4febe0]
mov ebx, eax
mov edx, 0x50
mov dword [ebp - 0x12c], ebx
call fcn.0048d8a0
mov ecx, dword [0x4febe0]
mov edx, 0x69
mov byte [ebp - 0x10e], al
call fcn.0048d8a0
mov ecx, dword [0x4febe0]
mov edx, 0x5b
mov byte [ebp - 0x121], al
call fcn.0048d8a0
push 0
mov byte [ebp - 0x10f], al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x407741
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00497aa0
add esp, 0xc
jmp 0x4077b2
mov ecx, dword [ebp + 8]
cmp edi, 0x12
jne 0x40775e
mov eax, ecx
shr eax, 0x10
test eax, 0x100
je 0x40775e
mov al, byte [ebp - 0xf6]
mov byte [ebp - 0x63], al
cmp ebx, 3
je 0x40777f
cmp ebx, 1
jg 0x4077a5
mov eax, dword [0x4fdfd4]
cmp byte [eax + 0x13d], 0
je 0x4077a5
cmp byte [ebp - 0x10e], 0
jne 0x4077a5
cmp edi, 0x90
jne 0x4077a5
test byte [ebp - 0xf8], 0x80
jne 0x4077a5
mov eax, ecx
mov edi, 0x2b
shr eax, 0x10
test eax, 0xc000
jne 0x4077a5
xor byte [ebp - 0x78], 1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov eax, dword [0x4fdfd4]
mov ebx, dword [ebp + 8]
shr ebx, 0x10
mov dword [ebp + 8], ebx
cmp byte [eax + 0x13f], 0
je 0x4077db
mov eax, ebx
and eax, 0xc000
cmp eax, 0x4000
je 0x407a71
mov eax, ebx
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x11c], ecx
mov cl, byte [ebp - 0xf7]
test eax, 0x2000
je 0x407858
test byte [ebp - 0x63], 0x80
jne 0x407858
shr edx, 0xf
mov al, 1
not dl
mov byte [ebp - 0x109], al
and edx, 0xffffff01
mov byte [ebp - 0x10d], al
mov dword [ebp - 0x118], edx
test cl, cl
jns 0x407865
cmp byte [ebp - 0x121], 0
mov dword [ebp - 0x118], edx
je 0x407841
mov byte [ebp - 0xf6], 0
mov byte [ebp - 0x109], al
mov byte [ebp - 0x10d], al
jmp 0x407865
xor bl, bl
mov byte [ebp - 0x63], 0x80
mov byte [ebp - 0x109], bl
mov byte [ebp - 0x10d], bl
mov ebx, dword [ebp + 8]
jmp 0x407865
shr eax, 0xf
not al
and al, 1
mov dword [ebp - 0x118], eax
movzx eax, byte [ebp - 0xf8]
and ebx, 0x81ff
movzx ecx, cl
shr ecx, 7
shr eax, 7
mov dword [ebp + 8], ebx
lea ebx, [eax + ecx*2]
mov ecx, dword [0x4fdfdc]
mov dword [ebp - 0x128], ebx
test ecx, ecx
jne 0x4078e6
lea edx, [ecx + 0x68]
mov dword [0x4fda5c], 0x100
mov ecx, dword [0x4febe0]
call fcn.0048d8a0
test al, al
je 0x4078cd
cmp edi, 0x12
jne 0x4078cd
mov eax, dword [ebp - 0x11c]
test eax, 0x100
je 0x4078e0
mov ecx, dword [0x4fdfdc]
mov dword [0x4fda5c], edi
jmp 0x4078f8
cmp edi, 0x5d
jne 0x4078e0
mov ecx, dword [0x4fdfdc]
mov dword [0x4fda5c], edi
jmp 0x4078f2
mov ecx, dword [0x4fdfdc]
cmp edi, dword [0x4fda5c]
jne 0x407999
mov eax, dword [ebp - 0x11c]
test ecx, ecx
jne 0x407982
test eax, 0xc000
jne 0x4079a7
mov ecx, 1
mov dword [0x4fdfdc], ecx
mov dl, byte [ebp - 0x109]
test dl, dl
jne 0x407958
mov eax, dword [0x4fdfd4]
cmp byte [eax + 0x13d], 0
mov eax, dword [ebp - 0x12c]
je 0x407942
cmp byte [ebp - 0x10e], 0
jne 0x407942
cmp eax, 2
jne 0x407958
cmp eax, 3
je 0x407958
cmp byte [ebp - 0x10f], 0
jne 0x407958
test ecx, ecx
je case.0x40797b.13
test dword [ebp - 0x11c], 0x100
jne case.0x40797b.13
lea eax, [edi - 0xc]
cmp eax, 0x22
ja case.0x40797b.13
movzx eax, byte [eax + 0x408574]
jmp dword [eax*4 + 0x408544]
cmp ecx, 1
jne 0x4079a7
test ax, ax
jns 0x4079a7
mov ecx, 2
mov dword [0x4fdfdc], ecx
jmp 0x4079b4
cmp ecx, 1
jne 0x4079ae
cmp edi, 0x11
je 0x407916
xor ecx, ecx
jmp 0x407910
jle 0x407916
mov dl, byte [ebp - 0x109]
test dl, dl
je 0x407920
xor ecx, ecx
mov dword [0x4fdfdc], ecx
jmp 0x407958
mov edi, 0x60
jmp 0x407a17
mov edi, 0x61
jmp 0x407a17
mov edi, 0x62
jmp 0x407a17
mov edi, 0x63
jmp 0x407a17
mov edi, 0x64
jmp 0x407a17
mov edi, 0x65
jmp 0x407a17
mov edi, 0x66
jmp 0x407a17
mov edi, 0x67
jmp 0x407a17
mov edi, 0x68
jmp 0x407a17
mov edi, 0x69
jmp 0x407a17
mov edi, 0x6e
test byte [ebp - 0x78], 1
je case.0x40797b.13
or ebx, 1
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp - 0x118]
test al, al
je case.0x407f34.14
test byte [ebp - 0x63], 0x80
jne case.0x407f34.14
test ecx, ecx
jne case.0x407f34.14
mov ecx, esi
test dl, dl
je 0x407a52
mov byte [ecx], 0x1b
lea esi, [ecx + 1]
cmp edi, 0x21
jne 0x407aa4
cmp ebx, 1
jne 0x407a84
push 0
push 2
push 0x115
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jne 0x407a8f
push 0
push 6
jmp 0x407a60
mov dword [ebp - 0x118], eax
cmp ebx, 2
jne 0x407c19
push 0
push 0
jmp 0x407a60
cmp edi, 0x22
jne 0x407ad4
cmp ebx, 3
jne 0x407ab4
push 0
push 7
jmp 0x407a60
cmp ebx, 1
jne 0x407abf
push 0
push 3
jmp 0x407a60
mov dword [ebp - 0x118], eax
cmp ebx, 2
jne 0x407c19
push 0
push 1
jmp 0x407a60
mov dword [ebp - 0x118], eax
mov dh, al
cmp edi, 0x2d
jne 0x407b6e
cmp ebx, 2
jne 0x407b1c
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x76]
call fcn.0048d930
sub eax, ebx
jne 0x407a71
push ecx
call fcn.00415600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov al, dh
mov dword [ebp - 0x118], eax
cmp ebx, 1
jne 0x407c19
mov ecx, dword [0x4febe0]
mov edx, 0xa3
call fcn.0048d930
sub eax, ebx
je 0x407bf6
sub eax, ebx
jne 0x407a71
mov ecx, dword [0x4fdfd4]
lea edx, [ebx + 1]
call fcn.00415640
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 0x43
jne 0x407baf
cmp ebx, 3
jne 0x407c19
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x61]
call fcn.0048d930
sub eax, 2
jne 0x407a71
push ecx
call fcn.00415600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 0x56
jne 0x407c19
cmp ebx, 3
jne 0x407c19
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x4e]
call fcn.0048d930
sub eax, 1
je 0x407bf6
sub eax, 1
jne 0x407a71
mov ecx, dword [0x4fdfd4]
lea edx, [edi - 0x54]
call fcn.00415640
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4fdfd4]
mov edx, 1
call fcn.00415640
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
test dl, dl
je 0x407d20
cmp edi, 0x73
jne 0x407c75
mov ecx, dword [0x4febe0]
lea edx, [edi - 0x15]
call fcn.0048d8a0
test al, al
jne 0x407ca4
mov dl, byte [ebp - 0x109]
cmp ebx, 2
jne 0x407ef7
lea eax, [edi - 0x32]
cmp eax, 6
ja 0x407e9d
mov al, byte [edi + 0x4c750a]
mov byte [esi], al
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 0x20
jne 0x407cc3
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x3f]
call fcn.0048d8a0
test al, al
je 0x407cb8
push 0
push 0xf100
push 0x112
push dword [0x4fcbe0]
call dword [sym.imp.USER32.dll_SendMessageA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov dl, byte [ebp - 0x109]
jmp 0x407e13
cmp edi, 0xd
jne 0x407d20
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x57]
call fcn.0048d8a0
test al, al
je 0x407c38
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x6f]
call fcn.0048d930
cmp eax, 1
je 0x407c38
mov eax, dword [ebp - 0x11c]
and eax, 0xc000
cmp eax, 0x4000
je 0x407ca4
call fcn.00409f90
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 0x13
jne 0x407d6e
cmp ebx, 2
jne 0x407d53
mov ecx, dword [0x4fdfd4]
cmp byte [ecx + 0x13d], 0
sete al
mov byte [ecx + 0x13d], al
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov word [esi], 0x1a
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 8
jne 0x407ddf
test ebx, ebx
jne 0x407da6
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x43]
call fcn.0048d8a0
neg al
sbb al, al
and al, 0x77
add al, 8
mov byte [esi], al
lea eax, [edi - 0xa]
mov byte [esi + 1], bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x407c3e
mov ecx, dword [0x4febe0]
lea edx, [ebx + 0x4a]
call fcn.0048d8a0
neg al
sbb al, al
and al, 0x89
add al, 0x7f
mov byte [esi], al
lea eax, [ebx - 3]
mov byte [esi + 1], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 9
jne 0x407e0e
cmp ebx, 1
jne 0x407c3e
mov word [esi], 0x5b1b
add esi, 2
mov byte [esi], 0x5a
sub esi, ecx
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 0x20
jne 0x407e5b
cmp ebx, 2
jne 0x407e35
mov byte [esi], 0
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jne 0x407f21
mov byte [esi], 0xa0
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 3
jne 0x407c3e
cmp ebx, 2
jne 0x407ef7
mov ecx, dword [0x4feba8]
test ecx, ecx
je 0x407a71
mov eax, dword [ecx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp edi, 0xbd
je 0x407eda
cmp edi, 0xbf
je 0x407eda
cmp edi, 0xdf
je 0x407ebd
cmp edi, 0xdc
jne 0x407f21
mov byte [esi], 0x1c
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov byte [esi], 0x1f
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp ebx, 3
jne 0x407f21
cmp edi, 0xde
jne 0x407f21
mov byte [esi], 0x1e
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0xc]
cmp eax, 0x77
ja case.0x407f34.14
movzx eax, byte [eax + 0x40865c]
jmp dword [eax*4 + 0x408598]
mov bl, 0x30
jmp 0x40815e
mov bl, 0x31
jmp 0x40815e
mov bl, 0x32
jmp 0x40815e
mov bl, 0x33
jmp 0x40815e
mov bl, 0x34
jmp 0x40815e
mov bl, 0x35
jmp 0x40815e
mov bl, 0x36
jmp 0x40815e
mov bl, 0x37
jmp 0x40815e
mov bl, 0x38
jmp 0x40815e
mov bl, 0x39
jmp 0x40815e
mov bl, 0x2e
jmp 0x40815e
mov bl, 0x2b
jmp 0x40815e
mov bl, 0x2d
jmp 0x40815e
mov bl, 0x2a
jmp 0x40815e
mov bl, 0x2f
jmp 0x40815e
mov bl, 0x47
jmp 0x40815e
mov ecx, 1
jmp 0x408038
mov ecx, 2
jmp 0x408038
mov ecx, 3
jmp 0x408038
mov ecx, 4
jmp 0x408038
mov ecx, 5
jmp 0x408038
mov ecx, 6
jmp 0x408038
mov ecx, 7
jmp 0x408038
mov ecx, 8
jmp 0x408038
mov ecx, 9
jmp 0x408038
mov ecx, 0xa
jmp 0x408038
mov ecx, 0xb
jmp 0x408038
mov ecx, 0xc
jmp 0x408038
mov ecx, 0xd
jmp 0x408038
mov ecx, 0xe
jmp 0x408038
mov ecx, 0xf
jmp 0x408038
mov ecx, 0x10
jmp 0x408038
mov ecx, 0x11
jmp 0x408038
mov ecx, 0x12
jmp 0x408038
mov ecx, 0x13
jmp 0x408038
mov ecx, 0x14
lea eax, [ebp - 0x109]
mov byte [ebp - 0x109], 0
push eax
push dword [ebp - 0x10d]
mov eax, ebx
and bl, 1
shr eax, 1
push eax
movzx eax, bl
push eax
push ecx
mov ecx, esi
call fcn.004167f0
sub esi, dword [ebp - 0x114]
add esp, 0x14
add eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
xor ecx, ecx
jmp 0x4080a1
mov ecx, 1
jmp 0x4080a1
mov ecx, 2
jmp 0x4080a1
mov ecx, 3
jmp 0x4080a1
mov ecx, 4
jmp 0x4080a1
mov ecx, 5
test bl, 2
jne case.0x407f34.14
lea eax, [ebp - 0x109]
push eax
push dword [ebp - 0x10d]
mov eax, ebx
and bl, 1
shr eax, 1
push eax
movzx eax, bl
push eax
push ecx
mov ecx, esi
call fcn.00416a20
sub esi, dword [ebp - 0x114]
add esp, 0x14
add eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov ecx, 0x41
jmp 0x408108
mov ecx, 0x42
jmp 0x408108
mov ecx, 0x43
jmp 0x408108
mov ecx, 0x44
jmp 0x408108
mov ecx, 0x47
lea eax, [ebp - 0x109]
mov byte [ebp - 0x109], 0
push eax
push dword [ebp - 0x10d]
mov eax, ebx
and bl, 1
shr eax, 1
push eax
movzx eax, bl
push eax
push ecx
mov ecx, esi
call fcn.00416720
sub esi, dword [ebp - 0x114]
add esp, 0x14
add eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x11c], 0x100
je 0x408203
mov bl, 0xd
mov byte [ebp - 0x10d], bl
test dl, dl
je 0x4081d1
mov al, bl
sub al, 0x30
cmp al, 9
ja 0x408183
mov eax, dword [0x4fec04]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffffd0
jmp 0x408185
xor eax, eax
mov dword [0x4fec04], eax
cmp byte [ebp - 0xf4], 0
mov byte [ebp - 0x10e], 0
je 0x408269
mov ecx, dword [0x4febe0]
mov edx, 0xac
call fcn.0048d8a0
mov bl, byte [ebp - 0x109]
test al, al
je 0x40826f
test bl, bl
mov byte [ebp - 0xf4], 0
sete byte [ebp - 0x10e]
jmp 0x40826f
mov ecx, dword [ebp - 0x128]
mov eax, ecx
shr eax, 1
push eax
mov al, cl
mov ecx, esi
and al, 1
movzx eax, al
push eax
push dword [ebp - 0x10d]
call fcn.00416b90
add esp, 0xc
test eax, eax
jne 0x408235
cmp bl, 0xd
jne case.0x407f34.14
mov ebx, dword [ebp - 0x128]
test ebx, ebx
jne 0x40824e
mov eax, dword [0x4fdfd4]
cmp byte [eax + 0x141], bl
je 0x40824e
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
sub esi, dword [ebp - 0x114]
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
sub eax, dword [ebp - 0x114]
add eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov word [esi], 0xd
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp - 0x109]
cmp dword [0x500368], 2
jne 0x4082b7
mov eax, dword [0x4fda28]
test eax, eax
je 0x4082b7
push dword [ebp - 0x120]
lea ecx, [ebp - 0x108]
push 0
push 3
push 0x4feb94
push ecx
mov ecx, dword [ebp + 8]
push ecx
push edi
call eax
mov dword [ebp - 0x120], eax
test eax, eax
jg 0x408319
test bl, bl
jne 0x4084ef
xor eax, eax
jmp 0x40850f
push dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0
push 0x4fda4c
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov edx, eax
mov dword [ebp - 0x120], edx
test edx, edx
jle 0x4082a8
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx*2 + 0x4fda4c]
mov byte [ecx + 0x4fdfb0], al
inc ecx
cmp ecx, edx
jl 0x4082f0
push 3
push 0x4feb94
push edx
push 0x4fdfb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 0x118]
xor esi, esi
mov edi, dword [ebp - 0x120]
nop word [eax + eax]
cmp dword [0x4fdfdc], 2
movzx eax, word [esi*2 + 0x4feb94]
mov edx, eax
mov ecx, eax
mov dword [ebp - 0x11c], edx
jne 0x40836a
lea eax, [ecx - 0x20]
cmp ax, 0x5f
ja 0x4083b4
mov eax, ecx
mov dword [0x4fdfdc], 3
mov dword [0x4fdb88], eax
jmp 0x4084b2
cmp dword [0x4fdfdc], 3
jne 0x4083b4
lea eax, [ecx - 0x20]
cmp ax, 0x5f
ja 0x4083b4
mov edx, ecx
mov dword [0x4fdfdc], 0
call fcn.0048be40
cmp eax, 0xffffffff
je 0x4084d4
movzx eax, ax
lea edx, [ebp - 0x128]
push 1
mov dword [ebp - 0x128], eax
call fcn.00416e00
add esp, 4
jmp 0x4084b2
mov dword [0x4fdfdc], 0
test bl, bl
jne 0x408438
mov ecx, dword [0x4fec04]
test ecx, ecx
je 0x40842e
call fcn.004010e0
test al, al
jne 0x408406
cmp byte [0x4fdff0], al
jne 0x408406
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x10f], cl
push 1
push eax
or edx, 0xffffffff
call fcn.00416e40
add esp, 8
mov dword [0x4fec04], 0
jmp 0x4084ab
movzx eax, cx
lea edx, [ebp - 0x128]
push 1
mov dword [ebp - 0x128], eax
call fcn.00416e00
add esp, 4
mov dword [0x4fec04], 0
jmp 0x4084ab
push 1
lea edx, [ebp - 0x11c]
jmp 0x4084a3
cmp byte [ebp - 0x10e], 0
je 0x40846d
mov eax, 0x80
cmp cx, ax
jae 0x40846d
mov eax, 0x1b
mov ecx, edx
mov word [ebp - 0x120], ax
call fcn.0048bd50
mov word [ebp - 0x11e], ax
lea edx, [ebp - 0x120]
jmp 0x408486
mov eax, 0x1b
mov word [ebp - 0x12a], dx
mov word [ebp - 0x12c], ax
lea edx, [ebp - 0x12c]
mov cl, byte [ebp - 0x109]
xor eax, eax
test cl, cl
setne al
inc eax
push eax
xor eax, eax
test cl, cl
mov ecx, 2
cmove eax, ecx
add edx, eax
call fcn.00416e00
add esp, 4
xor cl, cl
call fcn.00403930
inc esi
cmp esi, edi
jl 0x408330
xor eax, eax
mov word [0x4feb94], ax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495b16
mov esp, ebp
pop ebp
ret
cmp word [0x4feb94], 0
je 0x408515
call fcn.004010e0
test al, al
jne 0x40850a
cmp byte [0x4fdff0], al
je 0x408515
mov eax, 0xa
mov word [0x4feb94], ax
cmp edi, 0x12
jne 0x407ca4
mov ecx, dword [0x4febe0]
lea edx, [edi + 0x4e]
call fcn.0048d8a0
mov ecx, dword [ebp - 4]
movzx eax, al
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
pop ebx
call fcn.00495b16
mov esp, ebp
pop ebp
ret