Function at 0x405fb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x358
mov eax, dword [0x420a50]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x368]
push edi
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x169]
push ebx
push eax
mov byte [esp + 0x1f], 1
mov byte [esp + 0x170], bl
call fcn.00407f50
push 0xff
lea ecx, [esp + 0x75]
push ebx
push ecx
mov byte [esp + 0x7c], bl
call fcn.00407f50
add esp, 0x18
push 0x4221a0
mov dword [0x4226fc], ebx
mov dword [0x422088], esi
mov dword [0x422d38], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [0x4221a4]
mov eax, dword [0x4221a0]
push ebx
push 0x3e8
push edx
push eax
call fcn.00408c00
push 0x190
push 0x422530
push ebx
mov dword [0x4221a0], eax
mov dword [0x4221a4], edx
mov dword [0x421eb0], ebx
mov dword [0x421eb8], ebx
mov dword [0x422d00], ebx
mov byte [0x4226f3], bl
mov dword [0x422e40], ebx
mov byte [0x422d36], bl
mov byte [0x422087], bl
mov byte [0x421eef], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x422530
call fcn.00407a70
add esp, 8
mov byte [eax], bl
xor eax, eax
jmp 0x4060a0
mov cl, byte [eax + 0x422530]
mov byte [eax + 0x4223a0], cl
add eax, 1
cmp cl, bl
jne 0x4060a0
mov eax, dword [0x422088]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push str.KeyboardTest
push eax
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0x405450
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x1e
mov dword [esp + 0x34], eax
call esi
push 0x7f00
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [0x422088]
push str.KeyboardTest
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], str.KeyboardTest
call esi
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edx, dword [0x42356c]
lea eax, [edx - 2]
cmp eax, 3
mov dword [0x422708], ebx
ja 0x406245
xor esi, esi
cmp edx, ebx
jle 0x406245
mov edi, dword [0x423570]
mov ebp, 1
mov dword [esp + 0x14], ebp
cmp byte [esp + 0x13], bl
je 0x406245
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x406195
cmp byte [eax + 1], 0x66
jne 0x406184
mov dword [0x422708], ebp
cmp cl, 0x2f
jne 0x406195
cmp byte [eax + 1], 0x62
jne 0x406195
mov dword [0x422d00], ebp
mov eax, dword [edi + esi*4]
cmp byte [eax], 0x2f
jne 0x4061b0
cmp byte [eax + 1], 0x70
jne 0x4061b0
mov dword [0x422d00], ebp
mov byte [0x421eef], 1
mov eax, dword [edi + esi*4]
cmp byte [eax], 0x2f
jne 0x4061cb
cmp byte [eax + 1], 0x74
jne 0x4061cb
mov dword [0x422d00], ebp
mov byte [0x4226f3], 1
mov eax, dword [edi + esi*4]
cmp byte [eax], 0x2f
jne 0x406200
cmp byte [eax + 1], 0x6b
jne 0x406200
cmp dword [esp + 0x14], edx
jge 0x4061fc
mov ecx, dword [edi + esi*4 + 4]
mov edx, 0x422090
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebp
add edx, ebp
cmp al, bl
jne 0x4061e8
add esi, ebp
add dword [esp + 0x14], ebp
jmp 0x406200
mov byte [esp + 0x13], bl
mov eax, dword [edi + esi*4]
push str.BIT_PLUGIN_INT
push eax
call fcn.00408af0
mov edi, dword [0x423570]
add esp, 8
test eax, eax
je 0x406231
mov ecx, dword [edi + esi*4]
lea edx, [esp + 0x164]
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebp
add edx, ebp
cmp al, bl
jne 0x406225
mov edx, dword [0x42356c]
add dword [esp + 0x14], ebp
add esi, ebp
cmp esi, edx
jl 0x406164
mov ecx, dword [0x422088]
push ebx
push ebx
push ebx
push str.KeyboardTest
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp byte [0x421eef], bl
mov esi, dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4226fc], eax
je 0x4062de
push 0x208
call fcn.00408700
add esp, 4
cmp eax, ebx
je 0x406287
mov ecx, eax
call fcn.004064e0
jmp 0x406289
xor eax, eax
lea edx, [esp + 0x164]
push edx
mov ecx, eax
mov dword [0x42219c], eax
call fcn.00406610
cmp eax, ebx
je 0x4062c9
push eax
lea eax, [esp + 0x68]
push str.Unable_to_initialize_interface_with_BurnInTest___d_
push eax
call fcn.004079c0
add esp, 0xc
push ebx
push str.Keyboard_Test:_Error
lea ecx, [esp + 0x6c]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call esi
mov edx, dword [0x4226fc]
push ebx
push 0x3e8
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x4226fc]
push eax
call fcn.00405a00
add esp, 4
cmp eax, ebx
mov dword [0x422e38], eax
jle 0x406335
mov ecx, dword [0x422210]
mov edx, dword [ecx + 4]
mov dword [0x42220c], edx
call fcn.00403be0
mov eax, dword [0x4226fc]
push eax
call fcn.00404450
mov ecx, dword [esp + 0x37c]
mov edx, dword [0x4226fc]
add esp, 4
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00407340
test eax, eax
jne 0x406338
push ebx
call esi
cmp dword [0x422d00], ebx
je 0x40640a
cmp byte [0x421eef], bl
jne 0x40640a
mov eax, dword [0x4226fc]
mov ecx, dword [0x422088]
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
push ebx
push 0x401980
push eax
push str.Operator
push ecx
call esi
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_DestroyWindow]
jne 0x406383
mov edx, dword [0x4226fc]
push edx
call ebp
mov eax, dword [0x4226fc]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
push eax
call edi
cmp dword [0x422e40], ebx
je 0x4063da
push 0x422090
push str.Loaded_keyboard_layout__s.kbl_n
push 0x422d70
call fcn.004079c0
mov eax, 0x422d70
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4063b8
mov ecx, dword [0x422e40]
push ecx
sub eax, edx
push eax
push 1
push 0x422d70
call fcn.00407ebf
add esp, 0x10
mov edx, dword [0x4226fc]
mov eax, dword [0x422088]
push ebx
push 0x4012e0
push edx
push str.Serial
push eax
call esi
test eax, eax
jne 0x406401
mov ecx, dword [0x4226fc]
push ecx
call ebp
mov edx, dword [0x4226fc]
push edx
call edi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x54]
push eax
call esi
test eax, eax
je 0x40644c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ebx, [ebx]
lea ecx, [esp + 0x48]
push ecx
call edi
lea edx, [esp + 0x48]
push edx
call ebp
push ebx
push ebx
push ebx
lea eax, [esp + 0x54]
push eax
call esi
test eax, eax
jne 0x406430
mov ecx, dword [esp + 0x364]
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407a57
add esp, 0x358
ret 0x10