Function at 0x1001234e
Capabilities:
Get keyboard layout
Query environment variable
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006893b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100123a6
lea eax, [ebp + 0x10]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
movzx eax, byte [eax]
test eax, eax
je 0x10012395
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x100123a1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x10012ccd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe8], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax]
test eax, eax
je 0x10012cc5
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x180], 0xfffe
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x100123f0
push 0
call fcn.1000ea03
pop ecx
mov byte [ebp - 0x20], 0
push 1
push 0x696d
push 0x4010
push 0
lea eax, [ebp - 0x20]
push eax
push 0x56f9
call fcn.1000a677
add esp, 0x18
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x14c], 0x5816210b
mov dword [ebp - 0x154], 0xffffffff
mov dword [ebp - 0xd8], 0x5dae5a6
mov dword [ebp - 0xb8], 0xb7f37c04
mov dword [ebp - 0x15c], 6
mov dword [ebp - 0x164], 0xffffffff
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x144], 0xfffffffd
mov dword [ebp - 0x44], 9
mov dword [ebp - 0x16c], 0x82a74db5
mov dword [ebp - 0x14], 0
jmp 0x100124a3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x100124b9
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1ac], 0xffffffff
jmp 0x1001249c
mov dword [ebp - 0x14], 0
jmp 0x100124c9
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x100124df
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1a0], 0x4f934f54
jmp 0x100124c2
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0xd8], 9
jne 0x10012500
mov dword [ebp - 0x98], 1
jmp 0x10012507
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x98]
je 0x10012522
mov dword [ebp - 0x64], 1
jmp 0x10012526
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb8], eax
and dword [ebp - 0x50], 0
jmp 0x10012545
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x50], eax
jge 0x10012cc3
push 0x7b24
push 0
push 0x41c0
call fcn.1000d664
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
je 0x10012584
mov dword [ebp - 0xa4], 1
jmp 0x1001258b
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xd0], 0xffffffff
push 0x6265
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.100153d3
add esp, 0xc
push 0
push 0x679f
call fcn.1000d597
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x40000000
je 0x100125db
mov dword [ebp - 0x6c], 1
jmp 0x100125df
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xc4], eax
push 3
lea ecx, [ebp - 0x30]
call fcn.10020852
and dword [ebp - 4], 0
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 1
lea ecx, [ebp - 0x56]
call fcn.100208df
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x194]
call fcn.100208e2
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x100]
call fcn.1002088e
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], 0xfffffffc
mov dword [ebp - 0x60], 0x9d012742
mov dword [ebp - 0x18], 0
jmp 0x10012672
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x10012688
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.100208d0
or dword [eax], 0xffffffff
jmp 0x1001266b
mov dword [ebp - 0x18], 0
jmp 0x10012698
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x100126ae
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x17c], 0x1832d74
jmp 0x10012691
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov dword [eax], 0xffffffea
jmp 0x100126e1
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x94]
mov dword [ecx], eax
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
cmp dword [eax], 1
jge 0x100129b2
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], 0x6efe0cd1
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x4c], 0xfffffff9
mov dword [ebp - 0x80], 0x9879a925
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov esi, eax
push 0
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov esi, dword [esi]
add esi, dword [eax]
push 3
lea ecx, [ebp - 0x100]
call fcn.100208d0
mov dword [eax], esi
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
cmp dword [eax], 0x456574b6
jl 0x10012765
mov dword [ebp - 0x74], 1
jmp 0x10012769
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x74], eax
jge 0x1001277d
mov dword [ebp - 0xb4], 1
jmp 0x10012784
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100127a2
cmp dword [ebp - 0x24], 0
je 0x100127a2
mov dword [ebp - 0x7c], 1
jmp 0x100127a6
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x100127c2
push 4
pop eax
test eax, eax
jne 0x100127c2
and dword [ebp - 0xdc], 0
jmp 0x100127cc
mov dword [ebp - 0xdc], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x170], eax
push 3
lea ecx, [ebp - 0x100]
call fcn.100208d0
mov ecx, dword [ebp - 0x1c]
cmp dword [eax], ecx
jle 0x100127f5
mov dword [ebp - 0x9c], 1
jmp 0x100127fc
and dword [ebp - 0x9c], 0
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov eax, dword [eax]
cmp eax, dword [ebp - 0x9c]
jle 0x1001281c
mov dword [ebp - 0x84], 1
jmp 0x10012823
and dword [ebp - 0x84], 0
imul eax, dword [ebp - 0x84], 0xa50b
test eax, eax
jne 0x1001283d
mov dword [ebp - 0xd4], 1
jmp 0x10012844
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x48], 0x50714ba0
je 0x10012862
mov dword [ebp - 0xac], 1
jmp 0x10012869
and dword [ebp - 0xac], 0
push 2
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [eax]
jge 0x10012889
mov dword [ebp - 0x8c], 1
jmp 0x10012890
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov esi, dword [ebp - 0x4c]
push 1
lea ecx, [ebp - 0x30]
call fcn.100208d0
cmp esi, dword [eax]
jle 0x100128bc
mov dword [ebp - 0x68], 1
jmp 0x100128c0
and dword [ebp - 0x68], 0
push 1
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [eax]
jg 0x100128da
mov dword [ebp - 0x70], 1
jmp 0x100128de
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x48]
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x17c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x168], eax
push 0
lea ecx, [ebp - 0x30]
call fcn.100208d0
cmp dword [eax], 0x1552
jl 0x10012915
mov dword [ebp - 0x78], 1
jmp 0x10012919
and dword [ebp - 0x78], 0
push 1
lea ecx, [ebp - 0x100]
call fcn.100208d0
mov eax, dword [eax]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x1c]
jle 0x10012945
mov dword [ebp - 0x88], 1
jmp 0x1001294c
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x24]
neg eax
imul eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x1c]
jg 0x10012969
mov dword [ebp - 0x90], 1
jmp 0x10012970
and dword [ebp - 0x90], 0
push 4
pop eax
shl eax, 0
mov esi, dword [ebp + eax - 0x17c]
push 0
lea ecx, [ebp - 0x30]
call fcn.100208d0
mov ecx, dword [ebp - 0x90]
add ecx, dword [eax]
add ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x54], eax
jg 0x100129a3
mov dword [ebp - 0x5c], 1
jmp 0x100129a7
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
jmp 0x100126c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.100208b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100208b4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x80000000
je 0x100129e6
mov dword [ebp - 0xa0], 1
jmp 0x100129ed
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc8], eax
push 0
push 0x46f4
push 0x7e19
call fcn.1001b5e8
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 0x2000000
je 0x10012ac2
push 0x4000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push 0x5f90
push 0x507b
call fcn.10038ee6
pop ecx
pop ecx
call eax
push 2
lea ecx, [ebp - 0x140]
call fcn.10020852
mov dword [ebp - 4], 2
mov dword [ebp - 0xbc], 0xa66fe7d8
mov dword [ebp - 0x3c], 0
jmp 0x10012a70
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x10012a8c
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x140]
call fcn.100208d0
mov dword [eax], 1
jmp 0x10012a69
lea eax, [ebp - 0x140]
push eax
push 0x1b4d
push 0x96b
push 0
lea eax, [ebp - 0xbc]
push eax
call fcn.1000a78e
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.100208b4
jmp 0x10012535
lea eax, [ebp - 0x10]
push eax
push 0x4bc9
lea eax, [ebp - 0xc8]
push eax
push 0
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.1000dadc
add esp, 0x1c
mov dword [ebp - 0x38], 0
jmp 0x10012b01
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x10012b17
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x10c], 0x69fdf99f
jmp 0x10012afa
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x10c], 0xffffffe3
jmp 0x10012b45
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10c]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x10c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x10c], 0x11
jge 0x10012b7a
mov byte [ebp - 0x1f], 0
push 0x795
lea eax, [ebp - 0x1f]
push eax
push 1
push 0x2b67
push 0x6e83
push 0
call fcn.1000d5da
add esp, 0x18
jmp 0x10012b2a
lea eax, [ebp - 0x40]
push eax
push 0x6bd1
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.1000f893
add esp, 0x14
cmp dword [ebp - 0xb0], 0
jbe 0x10012cbe
mov dword [ebp - 0x120], 0x1a049fe3
mov dword [ebp - 0x11c], 0x1a049fe3
mov dword [ebp - 0x118], 0x1a049fe3
mov dword [ebp - 0x114], 0x1a049fe3
lea ecx, [ebp - 0x55]
call fcn.100208df
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x18c]
call fcn.100208e2
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xf4]
call fcn.1002088e
mov dword [ebp - 4], 3
push 2
lea ecx, [ebp - 0xf4]
call fcn.100208d0
mov dword [eax], 0x1d
jmp 0x10012c3f
push 2
lea ecx, [ebp - 0xf4]
call fcn.100208d0
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xa8]
mov dword [ecx], eax
push 2
lea ecx, [ebp - 0xf4]
call fcn.100208d0
cmp dword [eax], 0xffffffef
jge 0x10012c83
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x34], 0
jmp 0x10012c68
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x10012c81
mov byte [ebp - 0x1d], 0
push 0
lea eax, [ebp - 0x1d]
push eax
call fcn.1001ed3d
pop ecx
pop ecx
jmp 0x10012c61
jmp 0x10012c1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.100208b4
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0xe0]
push dword [ebp - 0xb0]
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push 0x5f90
push 0x5a89
call fcn.10038ee6
pop ecx
pop ecx
call eax
jmp 0x10012535
jmp 0x10012ccd
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret