Function at 0x402e70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xe0
cmp byte [0x4226f3], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xf0]
push edi
mov byte [esp + 0x13], 1
je 0x402ee4
cmp dword [0x422e40], 0
je 0x402ee4
mov ecx, dword [0x42220c]
mov eax, esi
shl eax, 6
mov edx, dword [eax + ecx + 8]
push edx
push str.Attempting_to_match_compound_key__s_n
push 0x422d70
call fcn.004079c0
mov eax, 0x422d70
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402ec2
mov ecx, dword [0x422e40]
push ecx
sub eax, edx
push eax
push 1
push 0x422d70
call fcn.00407ebf
add esp, 0x10
mov edi, dword [0x422e44]
add edi, 0xffffffff
jns 0x402ef4
mov edi, 0x63
shl esi, 6
mov eax, esi
mov esi, dword [0x42220c]
mov ecx, dword [eax + esi + 0x38]
xor ebp, ebp
cmp dword [ecx], 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
je 0x402f7f
lea eax, [esp + 0x28]
sub eax, ecx
lea edx, [esp + 0x50]
mov dword [esp + 0x14], eax
jmp 0x402f26
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x402f7b
mov ebx, dword [ecx]
mov dword [eax + ecx], ebx
mov eax, edi
shl eax, 4
cmp dword [eax + 0x422e48], 0xffffffff
lea eax, [eax + 0x422e48]
jne 0x402f4d
mov byte [esp + 0x13], 0
jmp 0x402f6d
sub edi, 1
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], eax
jns 0x402f6d
mov edi, 0x63
add ecx, 4
add ebp, 1
add edx, 0x10
cmp dword [ecx], 0xffffffff
jne 0x402f22
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + esi + 0x10], 4
jne 0x402ffe
cmp byte [esp + 0x13], 0
je 0x402ffe
lea edx, [esp + 0x28]
push ebp
push edx
call fcn.00402d90
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.00402de0
add esp, 0x10
cmp byte [0x4226f3], 0
je 0x402ffe
cmp dword [0x422e40], 0
je 0x402ffe
push str.Sorted_compound_characters_and_History_n
push 0x422d70
call fcn.004079c0
mov eax, 0x422d70
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402fd6
mov ecx, dword [0x422e40]
push ecx
sub eax, edx
push eax
push 1
push 0x422d70
call fcn.00407ebf
mov esi, dword [0x42220c]
add esp, 0x10
test ebp, ebp
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], 0
jle 0x403110
lea edi, [esp + 0x58]
jmp 0x403028
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
je 0x403110
mov edx, dword [edi - 8]
mov ebp, dword [edi + 4]
shl edx, 6
mov ebx, dword [edx + esi]
mov edx, dword [edi]
sub eax, edx
mov dword [esp + 0x20], edx
mov edx, dword [0x4221a4]
push edx
mov edx, dword [0x4221a0]
push edx
sbb ecx, ebp
push ecx
push eax
mov dword [esp + 0x34], ebp
call fcn.00408c00
cmp byte [0x4226f3], 0
mov ebp, eax
je 0x4030d8
cmp dword [0x422e40], 0
je 0x4030d8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi + 0x34]
mov edx, dword [eax + esi + 0x30]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + eax*4 + 0x2c]
push edx
push ebp
push ecx
push ebx
push str.History_scancode__d._Compound_key_scancode__d._Time_diff__d__reqd:__d___n
push 0x422d70
call fcn.004079c0
mov eax, 0x422d70
add esp, 0x1c
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4030b0
mov edx, dword [0x422e40]
push edx
sub eax, ecx
push eax
push 1
push 0x422d70
call fcn.00407ebf
mov esi, dword [0x42220c]
add esp, 0x10
mov ecx, dword [esp + 0x18]
cmp dword [esp + ecx*4 + 0x28], ebx
jne 0x4030f7
mov ebx, dword [esp + 0x1c]
mov eax, ebp
cdq
cmp edx, dword [ebx + esi + 0x34]
jl 0x4030fc
jg 0x4030f7
cmp eax, dword [ebx + esi + 0x30]
jbe 0x4030fc
mov byte [esp + 0x13], 0
add ecx, 1
add edi, 0x10
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jl 0x403020
cmp byte [0x4226f3], 0
je 0x403173
cmp dword [0x422e40], 0
je 0x403173
mov bl, byte [esp + 0x13]
movzx eax, bl
push eax
push 0x41a840
push 0x422d70
call fcn.004079c0
mov eax, 0x422d70
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403144
mov ecx, dword [0x422e40]
push ecx
sub eax, edx
push eax
push 1
push 0x422d70
call fcn.00407ebf
add esp, 0x10
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xe0
ret
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret