Function at 0x40c2f0
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esi], 0
je 0x40d47d
push str.LEFT
push esi
call fcn.00476cb6
add esp, 0
test eax, eax
je 0x840c479
push 0x491a48
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x40c47d
push 0x49584c
push esi
push 0x6a982
add esp, 8
test eax, eax
je 0xc0c4ad
push 0x491a54
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jbe 0x40c46d
push 0x591a18
push esi
call 0x8476cb6
add esp, 8
test eax, eax
je 0x40c467
push 0x60
sbb cl, byte [ecx]
push esi
ljmp 0xc483
mov eax, 5
ret
movzx eax, bl
neg eax
sbb eax, eax
and eax, 0x804099
add eax, 2
ret
movzx eax, byte [ebx - 0x3fe42709]
cmp dword [ebp], 0x25
dec edx
add byte [edx], al
mov byte [ebp - 2], 0
jne 0x40cbdf
mov esi, dword [sym.imp.KERNUL32.dll_GetTickCoun4]
not esi
sub eax, dword [0x4a3104]
mov ecx, dword [0x49d3c8]
cmp eax, dword [ecx + 0x40000030]
jbe 0x40cbdf
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USEV32ndll_PegkMessageA]
test eax, eax
je 0x40cbd8
push 1
push 0xffffffffffffffff
iretd
call esi
mov dword [0x4a3104], eax
cmp byte [ebp + 0xc], 0
jne 0x40d4e9
wait
jne 0x40cbf4
movsx eax, byte [esi]
push eax
push str._
push 7
add byte [edx + 7], ch
mov al, 6
add byte [ebx - 0x7f7af73c], al
je 0x40d4e9
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40cc1b.34
movzx eax, byte [eax + 0x40d950]
jmp dword [eax*4 + 0x40d934]
test bl, 3
jne case.0x40cc1b.34
or byte [ebp - 1], 1
jmp case.0x40cc1b.34
test bl, 0x30
jne case.0x40cc1b.34
or byte [ebp - 1], 0x10
jmp case.0x40cc1b.34
test bl, 0xc
jne case.0x40cc1b.34
or byte [ebp - 1], 4
jmp case.0x40cc1b.34
cmp byte [0x4a30e7], 0
jne case.0x40cc1b.34
test bl, 0xc0
jne case.0x40cc1b.34
or byte [ebp - 1], 0x40
jmp case.0x40cc1b.34
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00477c01
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40cc1b.34
mov ebx, esi
mov al, byte [ebx]
cmp al, 0x20
je 0x40cc9f
cmp al, 9
jne 0x40cca2
inc ebx
jmp 0x40cc95
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x34], esi
jne 0x40cd3d
mov al, byte [edi + 1]
lea esi, [edi + 1]
cmp al, 0x7d
jne 0x40cccb
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], 1
jmp 0x40cd37
cmp al, 0x20
je 0x40cce0
cmp al, 9
jne 0x40d481
mov ebx, dword [ebp - 0x20]
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0x20
je 0x40ccea
cmp al, 9
jne 0x40cced
inc esi
jmp 0x40cce0
push 4
push str.Down
push esi
call fcn.00477695
add esp, 0xc
test eax, eax
je 0x40cd1c
push 2
push 0x4902c4
push esi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x40d481
mov ebx, dword [ebp - 0x20]
push 0x7d
push esi
call fcn.00477c01
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40d48b
sub eax, ebx
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x1c]
push 5
push 0x491100
push ebx
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x40cde2
mov byte [edi], al
lea eax, [ebx + 5]
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40cd6c
cmp cl, 9
jne 0x40cd6f
inc eax
jmp 0x40cd60
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.0040e9f0
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40cdc1
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + 0xc7]
mov eax, dword [ebp - 0x50]
push eax
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0040f6d0
add esp, 0x10
jmp 0x40d481
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
push eax
push 0
jmp 0x40d472
push 3
push 0x491aa4
push ebx
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x40cdff
mov byte [ebp + 0xc], 1
jmp 0x40d481
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov edi, 0x4918e4
mov eax, ebx
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], esi
call fcn.00408bf0
mov dword [ebp - 0x60], eax
test eax, eax
je 0x40cea9
mov cl, byte [eax]
mov byte [ebp - 0x2b], cl
mov ecx, eax
sub ecx, ebx
mov byte [eax], 0
mov dword [ebp - 0x24], ecx
lea esi, [eax + 1]
nop
mov al, byte [esi]
cmp al, 0x20
je 0x40ce4a
cmp al, 9
jne 0x40ce4d
inc esi
jmp 0x40ce40
mov edx, dword [ebp - 0x1c]
sub edx, esi
je 0x40cea9
push 4
push str.Down
push esi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x40ce86
push 4
push str.Temp
add esi, 4
push esi
mov dword [ebp - 0x18], eax
call fcn.00477695
add esp, 0xc
test eax, eax
setne byte [ebp - 0x2a]
jmp 0x40cea9
push 0x4902c4
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x40cea1
mov dword [ebp - 0x18], 1
jmp 0x40cea9
call fcn.0040c2c0
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
test al, al
je 0x40cee2
cmp byte [ebx + 1], 0
jne 0x40cec5
mov ecx, dword [0x49f97c]
lea esi, [ebp - 1]
call fcn.00410ff0
jmp 0x40cee4
xor esi, esi
mov eax, dword [esi*8 + 0x49e108]
push ebx
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x40cef9
inc esi
cmp esi, 0x6d
jl 0x40cec7
xor al, al
mov esi, dword [ebp - 0x20]
mov bl, al
mov byte [ebp - 0x28], bl
test al, al
je 0x40cf02
mov dword [ebp + 8], 0
jmp 0x40cf74
mov al, byte [esi*8 + 0x49e10c]
jmp 0x40cee4
mov eax, esi
call fcn.00410e90
movzx edi, ax
mov dword [ebp + 8], edi
test di, di
jne 0x40cf77
mov al, byte [esi]
call fcn.00408bc0
cmp al, 0x56
jne 0x40cf77
mov al, byte [esi + 1]
call fcn.00408bc0
cmp al, 0x4b
jne 0x40cf77
lea ebx, [esi + 2]
mov edi, 0x491ab0
mov eax, ebx
call fcn.00408bf0
mov edi, eax
test edi, edi
je 0x40cf62
mov al, byte [edi + 1]
call fcn.00408bc0
cmp al, 0x43
jne 0x40cf62
push 0x10
push 0
add edi, 2
push edi
call fcn.00478594
movzx eax, ax
add esp, 0xc
mov dword [ebp + 8], eax
push 0x10
push 0
push ebx
call fcn.00478594
mov bl, al
add esp, 0xc
mov byte [ebp - 0x28], bl
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x40cf83
mov cl, byte [ebp - 0x2b]
mov byte [eax], cl
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov byte [edx], 0x7d
cmp dword [ebp - 0x30], eax
jl 0x40d481
test bl, bl
jne 0x40d3e0
test di, di
jne 0x40d3e0
cmp dword [ebp - 0x24], eax
jne 0x40cfe3
cmp dword [ebp - 0x18], eax
je 0x40d481
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40cfd4
movsx ecx, byte [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USEV32ndll_Postessagea]
jmp 0x40d481
mov eax, dword [ebp - 0x30]
mov cl, byte [esi]
call fcn.0040dde0
jmp 0x40d481
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
sete bl
push eax
call fcn.00411060
add esp, 8
mov byte [ebp - 0x28], al
test al, al
je 0x40d1db
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40d021
cmp dword [ebp - 0x18], edi
jne 0x40d01c
mov byte [ebp - 0xa], al
jmp 0x40d021
call fcn.0040c490
cmp dword [0x4a2500], 0
je 0x40d035
mov bl, byte [0x49f95e]
jmp 0x40d127
cmp dword [0x4a0b68], 0
je 0x40d049
mov bl, byte [0x4a0a35]
jmp 0x40d127
mov esi, dword [sym.imp.USEV32ndll_GetAsyncKe9State]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d064
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40d078
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d08c
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40d0a0
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d0b4
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40d0c8
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d0d9
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d0ea
or bl, 0x80
cmp dword [0x4a0b68], 0
je 0x40d127
mov al, bl
not al
and al, byte [0x4a0a35]
je 0x40d127
mov cl, byte [0x4a0a37]
not al
and byte [0x4a0a35], al
and byte [0x4a0a36], al
and cl, al
mov al, cl
mov byte [0x4a0a37], cl
mov ecx, 0x4a0a58
call fcn.00410950
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.004101a0
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40d481
mov ebx, dword [ebp - 0x28]
mov edi, eax
mov edi, edi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040e2a0
add esp, 0x18
cmp dword [0x4a2500], 0
jne 0x40d1cf
mov esi, dword [sym.imp.KERNUL32.dll_GetTickCoun4]
call esi
sub eax, dword [0x4a3104]
mov ecx, dword [0x49d3c8]
cmp eax, dword [ecx + 0xb0]
jbe 0x40d1cf
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USEV32ndll_PegkMessageA]
test eax, eax
je 0x40d1c8
push 1
push 0xffffffffffffffff
mov dword [0x49d328], 0
call fcn.00401340
add esp, 8
mov dword [0x49d328], 1
call esi
mov dword [0x4a3104], eax
dec edi
jne 0x40d150
jmp 0x40d481
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
cmp edi, 4
jbe 0x40d215
push 4
push str.ASC
push esi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x40d215
cmp dword [ebp + 0x14], eax
jne 0x40d215
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40d212
cmp cl, 9
jne 0x40d3ad
inc eax
jmp 0x40d202
cmp edi, 2
jbe 0x40d481
push 2
push 0x491abc
push esi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x40d481
push 0x10
push eax
add esi, 2
push esi
call fcn.00478594
movzx esi, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40d263
push 0
push esi
push 0x102
push eax
call dword [sym.imp.USEV32ndll_PospMessagW]
jmp 0x40d3b2
mov eax, dword [0x4a2500]
cmp eax, 2
je 0x40d397
test eax, eax
je 0x40d280
mov bl, byte [0x49f95e]
jmp 0x40d372
cmp dword [0x4a0b68], 0
je 0x40d294
mov bl, byte [0x4a0a35]
jmp 0x40d372
mov edi, dword [sym.imp.USEV32ndll_GetAsyncKe9State]
push 0xa0
xor bl, bl
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d2af
mov bl, 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x40d2c3
or bl, 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d2d7
or bl, 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x40d2eb
or bl, 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d2ff
or bl, 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x40d313
or bl, 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x40d324
or bl, 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40d335
or bl, 0x80
cmp dword [0x4a0b68], 0
je 0x40d372
mov al, bl
not al
and al, byte [0x4a0a35]
je 0x40d372
mov cl, byte [0x4a0a37]
not al
and byte [0x4a0a35], al
and byte [0x4a0a36], al
and cl, al
mov al, cl
mov byte [0x4a0a37], cl
mov ecx, 0x4a0a58
call fcn.00410950
mov al, byte [ebp - 1]
or al, byte [ebp - 8]
push 1
push 0
movzx eax, al
push 0
push ebx
push eax
mov eax, 0xffc3d44f
call fcn.004101a0
add esp, 0x14
call fcn.0040c510
jmp 0x40d3b2
push 0xa
lea ecx, [ebp - 0x67]
push ecx
push esi
mov byte [ebp - 0x68], 0x30
call fcn.00476952
add esp, 0xc
lea eax, [ebp - 0x68]
call fcn.0040dec0
cmp dword [0x4a2500], 2
jne 0x40d3cd
mov eax, dword [0x49d3c8]
mov esi, dword [eax + 0x60]
call fcn.0040fdf0
jmp 0x40d481
mov ecx, dword [0x49d3c8]
mov esi, dword [ecx + 0x5c]
call fcn.0040fdf0
jmp 0x40d481
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00410a20
mov byte [ebp - 0x3c], al
test al, al
je 0x40d452
cmp dword [ebp + 0x14], 0
jne 0x40d452
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40d418
mov byte [ebp - 0xa], bl
cmp byte [ebp - 0x2a], al
je 0x40d410
mov dl, byte [ebp - 0x3c]
or byte [0x4a14ef], dl
mov al, byte [ebp - 0x3c]
or byte [ebp - 8], al
jmp 0x40d452
cmp eax, 1
jne 0x40d452
mov al, bl
call fcn.0040c490
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4a14ef]
not al
and byte [ebp - 2], al
and cl, al
mov byte [0x4a14ef], cl
cmp bl, 0xa5
jne 0x40d44c
cmp dword [0x49f978], 3
jne 0x40d44c
and byte [ebp - 2], 0xfe
or cl, byte [ebp - 2]
mov byte [ebp - 8], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
push 0
push Ordinal_2
push Ordinal_2
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x30]
push edi
mov edx, dword [ebp - 0x28]
mov al, byte [ebp - 1]
push edx
call fcn.0040d9b0
add esp, 0x24
add byte [ebx + 0x458b24c4], al
in al, 0x89
inc ebp
or dh, al
inc ebp
inc dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov byte [ebp - 1], 0
mov bl, byte [ebp - 8]
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0xa]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4a14ee], cl
jne 0x40cb76
xor edi, edi
cmp dword [0x4a2500], edi
je 0x40d69a
cmp byte [0x49f95c], 0
mov dword [ebp - 0x24], 0xffffffff
jne 0x40d656
cmp dword [0x49f970], edi
jbe 0x40d656
cmp byte [0x49f956], 0
je 0x40d614
xor eax, eax
jmp 0x40d620
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
mov byte [ebp - 0x10], al
test al, al
je 0x40d58e
cmp byte [ebp - 0xf], 0
jne 0x40d512
mov ecx, dword [0x49f97c]
lea esi, [ebp - 1]
call fcn.00410ff0
jmp 0x40d590
movzx esi, al
test esi, 0xffffff80
jne 0x40d52f
push 2
push esi
call fcn.0047814e
add esp, 8
test eax, eax
je 0x40d52f
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40d56b
movzx esi, byte [ebp - 0xf]
test esi, 0xffffff80
jne 0x40d553
push 2
push esi
call fcn.0047814e
add esp, 8
test eax, eax
je 0x40d553
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40d56b
push 0x10
lea edx, [ebp - 0xe]
push 0
push edx
call fcn.00478594
add esp, 0xc
jmp 0x40d590
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x49e108]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x40d5d1
inc esi
cmp esi, 0x6d
jl 0x40d570
xor al, al
mov byte [ebp - 0x38], al
mov byte [ebp - 0x28], al
test al, al
je 0x40d5da
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x38]
push 0
push Ordinal_2
push Ordinal_2
push edx
push 0
push 2
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov ecx, 1
call fcn.0040d9b0
add esp, 0x24
mov byte [ebp - 1], 0
jmp case.0x40cc1b.34
mov al, byte [esi*8 + 0x49e10c]
jmp 0x40d590
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
test eax, eax
je 0x40d5ff
movsx ecx, byte [edx]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USEV32ndll_Postessagea]
mov byte [ebp - 1], 0
jmp case.0x40cc1b.34
mov cl, byte [edx]
mov eax, 1
call fcn.0040dde0
mov byte [ebp - 1], 0
jmp case.0x40cc1b.34
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 3]
not eax
and eax, edx
or al, byte [ebp - 8]
mov ebx, 1
push ebx
mov byte [ebp + 8], al
movzx eax, byte [0x49f95e]
mov esi, dword [ebp + 8]
push ebx
push edi
push eax
push esi
mov eax, 0xffc3d44d
call fcn.004101a0
add esp, 0x14
lea ecx, [ebp - 0x24]
push esi
push ecx
call fcn.0040fca0
add esp, 8
jmp 0x40d65b
mov ebx, 1
mov eax, dword [0x4a2500]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x49f96c], eax
cmp dword [0x4a0b68], edi
je 0x40d6aa
mov cl, byte [0x4a0a37]
jmp 0x40d6cd
cmp dword [0x49d320], edi
jl 0x40d6ca
call dword [sym.imp.KERNUL32.dll_GetTickCoun4]
sub eax, dword [0x4a30c0]
cmp eax, dword [0x49d320]
jb 0x40d6ca
xor cl, cl
jmp 0x40d6cd
mov cl, byte [ebp - 3]
cmp byte [0x49f956], 0
je 0x40d6ef
mov dl, byte [ebp - 3]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 8]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40d6fc
mov al, byte [ebp - 9]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4a0b68], edi
je 0x40d711
mov al, byte [0x4a0a35]
mov byte [ebp - 0x24], al
jmp 0x40d7f1
mov esi, dword [sym.imp.USEV32ndll_GetAsyncKe9State]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d72c
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40d740
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d754
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40d768
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d77c
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40d790
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40d7a1
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d7b2
or bl, 0x80
cmp dword [0x4a0b68], edi
je 0x40d7ee
mov al, bl
not al
and al, byte [0x4a0a35]
je 0x40d7ee
mov cl, byte [0x4a0a37]
not al
and byte [0x4a0a35], al
and byte [0x4a0a36], al
and cl, al
mov al, cl
mov byte [0x4a0a37], cl
mov ecx, 0x4a0a58
call fcn.00410950
mov byte [ebp - 0x24], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.004101a0
add esp, 0x14