Function at 0x436242
Capabilities:
Get keyboard layout
Modify service
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x64], edx
push edi
cmp dword [esi + 0x10], 0
jne 0x436264
xor al, al
jmp 0x436d50
mov dword [esp + 0x6c], 9
lea ecx, [esp + 0x12c]
mov dword [esp + 0x94], 3
mov dword [esp + 0xd4], 0xd7d393e7
push 3
call fcn.00421789
mov dword [esp + 0xcc], 0x7c869b7d
lea edx, [esp + 0x12c]
xor ebx, ebx
mov dword [esp + 0x98], 8
inc ebx
lea ecx, [esp + 0x84]
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xa8], 0xfbf26171
call fcn.00432290
inc dword [esp + 0x6c]
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0xf4]
lea ecx, [esp + 0xc0]
call fcn.004328cc
add esp, 0x18
lea ecx, [esp + 0x12c]
call fcn.00421a31
lea eax, [esp + 0x68]
push eax
push 0
call fcn.00438b14
pop ecx
pop ecx
mov dword [esp + 0x2c], 0x53b26bdd
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 0x8f90a3cf
mov dword [esp + 0x1c], 0xa67606e8
mov dword [esp + 0xc0], 0xdfce9586
push ebx
call fcn.00421789
push 2
lea ecx, [esp + 0x10c]
call fcn.00421789
mov dword [esp + 0x20], 0xffffffff
lea edx, [esp + 0x9c]
lea ecx, [esp + 0xe4]
call fcn.00432f41
lea edx, [esp + 0x108]
lea ecx, [esp + 0xe4]
call fcn.00435549
xor eax, eax
push 0xfffffffffffffffd
mov dword [esp + 0x30], eax
pop edi
jmp 0x4365a4
push dword [esp + 0x84]
mov dword [esp + 0x48], 0xb7f37c04
lea ecx, [esp + 0x17c]
mov dword [esp + 0x40], 0x63090707
xorps xmm0, xmm0
mov dword [esp + 0x80], 0xffffffff
push ecx
mov dword [esp + 0x28], 0xfdda7840
lea ecx, [esp + 0x170]
mov dword [esp + 0xe8], 0xb9bdd189
mov dword [esp + 0xd0], edi
push ecx
mov dword [esp + 0xf4], 0x513e67dc
lea ecx, [esp + 0xfc]
mov dword [esp + 0xdc], 6
mov dword [esp + 0x2c], 0x5a1b5826
push eax
movdqu xmmword [esp + 0x178], xmm0
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
call fcn.00421d7b
xor eax, eax
cmp dword [esp + 0x44], eax
je 0x436454
mov ecx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
xor edx, edx
cmp ecx, ebx
setle dl
mov dword [esp + 0x60], edx
cmp dword [esp + 0x60], eax
je 0x4364da
lea eax, [esp + 0x2c]
mov dword [esp + 0xec], 0x2324015f
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0xbc], ebx
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0xe0], 0x3c444c9c
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0xfc]
lea ecx, [esp + 0xc0]
call fcn.00432fcf
add esp, 0x24
jmp 0x43653f
mov dword [esp + 0x3c], eax
jmp 0x436518
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x43650d
cmp dword [esp + 0x44], eax
je 0x4364fa
dec dword [esp + 0x70]
jmp 0x436509
lea ecx, [esp + 0x37]
mov byte [esp + 0x37], al
call fcn.00435651
xor eax, eax
dec dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xffffffff
jg 0x4364ee
inc dword [esp + 0x3c]
cmp dword [esp + 0x3c], 2
jg 0x4364e0
mov dword [esp + 0x1c], eax
jmp 0x436539
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x9c]
call fcn.00435890
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], ebx
jl 0x436525
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x104]
call fcn.00433a95
add esp, 0x24
lea ecx, [esp + 0xf0]
call fcn.00421a31
inc dword [esp + 0x2c]
push 0
pop eax
cmp dword [esp + 0x2c], 0xe
jle 0x4363ac
lea ecx, [esp + 0x108]
call fcn.00421a31
lea ecx, [esp + 0x9c]
call fcn.00421a31
cmp dword [esi + 0x14], 0x10
jb 0x4365d1
mov ecx, dword [esi]
jmp 0x4365d3
mov ecx, esi
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x64], ecx
jb 0x4365e1
mov edx, dword [esi]
jmp 0x4365e3
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
cmp ecx, eax
je 0x436a92
mov al, byte [ecx]
cmp al, 0x30
jl 0x4367aa
cmp al, 0x39
jg 0x4367aa
mov dword [esp + 0x28], 0x53b26bdd
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x28], 0
jmp 0x436736
push ebx
lea ecx, [esp + 0x8c]
call fcn.00421789
mov dword [esp + 0x80], 0x8f4a8fe2
lea ecx, [esp + 0xfc]
push 3
call fcn.00421789
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x436663
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x88]
mov dword [ecx + edx*4], 0xfff8
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jl 0x43664d
mov dword [esp + 0xc], eax
jmp 0x436681
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xfc]
mov dword [ecx + edx*4], eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x43666f
mov ecx, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [esp + 0x28]
mov ecx, dword [esp + 0x88]
cmp dword [ecx], ebx
setne dl
imul ecx, edx, 0xf23e
test ecx, ecx
jne 0x4366b0
mov edi, eax
cmp dword [esp + 0x28], eax
je 0x4366b2
mov edi, ebx
mov ecx, dword [esp + 0x88]
xor edx, edx
cmp edi, dword [ecx]
setl dl
cmp edx, dword [esp + 0x28]
jne 0x4366e6
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x4c], 0xef4a0426
mov ecx, dword [ecx]
mov dword [esp + 0x80], ecx
cmp dword [esp + 0x4c], eax
je 0x4366ef
jmp 0x43671a
lea ecx, [esp + 0x78]
call fcn.0043440f
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x108]
call fcn.00435a2e
add esp, 0xc
lea ecx, [esp + 0xfc]
call fcn.00421a31
lea ecx, [esp + 0x88]
call fcn.00421a31
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 2
jne 0x43661f
lea eax, [esp + 0x64]
push eax
push 0x696
lea eax, [esp + 0x70]
push 0
push eax
call fcn.0043afb5
mov dword [esp + 0x50], 0x1824a8c6
add esp, 0x10
mov dword [esp + 0xbc], 0x37b1891f
mov dword [esp + 0x40], 0xfffffff3
jmp 0x43678b
lea edx, [esp + 0x40]
lea ecx, [esp + 0xbc]
call fcn.00434594
dec dword [esp + 0x40]
cmp dword [esp + 0x40], 0xfffffff1
jne 0x436777
lea ecx, [esp + 0x35]
mov byte [esp + 0x35], 0
call fcn.00434bd0
mov ecx, dword [esp + 0x64]
inc ecx
jmp 0x4365d3
lea ecx, [esp + 0x68]
call fcn.00436005
push 0xfffffffffffffffe
pop edi
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x150]
mov dword [esp + 0x10], 6
mov dword [esp + 0x30], 0x6673e7ed
mov dword [esp + 0x48], 0xf5a8b060
push ebx
call fcn.00421789
xor eax, eax
mov dword [esp + 0x20], 0x55069097
mov dword [esp + 0x24], eax
jmp 0x436805
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x150]
mov dword [ecx + edx*4], 0xfffffffb
inc dword [esp + 0x24]
cmp dword [esp + 0x24], ebx
jl 0x4367ef
push 4
mov dword [esp + 0x28], eax
pop esi
jmp 0x436827
mov ecx, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0x188], 0x69fdb81f
inc dword [esp + 0x24]
cmp dword [esp + 0x24], esi
jl 0x436814
mov ecx, dword [esp + 0xc]
sub ecx, edi
neg ecx
sbb ecx, ecx
xor ebx, ebx
inc ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp ecx, edx
mov ecx, dword [esp + 0xc]
setl bl
neg ebx
sub ebx, 0x6e87
neg ebx
sbb ebx, ebx
sub ecx, dword [esp + 0xc]
inc ebx
neg ecx
sbb ecx, ecx
inc ecx
cmp ebx, ecx
jl 0x436873
cmp dword [esp + 0x10], eax
jne 0x436873
mov ecx, eax
jmp 0x436876
xor ecx, ecx
inc ecx
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x30], eax
je 0x436909
push dword [esp + 0x84]
movdqa xmm0, xmmword [0xaaccf0]
lea ecx, [esp + 0x18c]
push ecx
lea ecx, [esp + 0x180]
mov dword [esp + 0xb4], eax
push ecx
push eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0xc0], eax
movdqu xmmword [esp + 0x188], xmm0
mov dword [esp + 0xc4], eax
call fcn.00421d7b
lea eax, [esp + 0xac]
mov dword [esp + 0xc4], 0x93c1de6f
push eax
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x50]
lea ecx, [esp + 0xcc]
call fcn.00434edf
pop ecx
pop ecx
lea ecx, [esp + 0xac]
call fcn.00421a31
jmp 0x436a29
mov dword [esp + 0x5c], 0xcd9796a0
mov dword [esp + 0x10], eax
jmp 0x43692a
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0x198], 0x3c47aa29
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x436917
mov dword [esp + 0xc], 3
jmp 0x436a1e
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x18], 0x9f2b7826
mov byte [esp + 0x17], al
cmp byte [esp + 0x17], 0
je 0x4369dd
push 2
lea ecx, [esp + 0x148]
call fcn.00421789
mov dword [esp + 0x10], 0xdf1febae
mov dword [esp + 0x10], 0
jmp 0x436992
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x144]
mov dword [eax + ecx*4], 0xfffffff7
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x43697c
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], 0
jl 0x4369c5
mov byte [esp + 0x17], 0
cmp byte [esp + 0x17], 0
je 0x4369bf
push 0x133d
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
dec dword [esp + 0x10]
jns 0x4369a8
lea ecx, [esp + 0x144]
call fcn.00421a31
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor eax, eax
mov ecx, dword [esp + 0x48]
xor edx, edx
cmp ecx, 1
mov ecx, dword [esp + 0x4c]
setge dl
xor ebx, ebx
cmp edx, ecx
setle bl
sub ebx, 0xe1c2
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [esp + 0x5c], 0x9785734c
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, ebx
setl dl
imul edx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 7
je 0x43693d
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], eax
jl 0x436a81
mov dword [esp + 0x18], 0xffff
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], eax
jl 0x436a77
mov byte [esp + 0x36], al
cmp byte [esp + 0x36], 0
je 0x436a71
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x1b26
push 0x12ae
push 0x23ab
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
xor eax, eax
dec dword [esp + 0x48]
jns 0x436a47
dec dword [esp + 0x18]
dec dword [esp + 0x30]
jns 0x436a35
lea ecx, [esp + 0x150]
call fcn.00421a31
jmp 0x43625d
push 4
pop esi
mov dword [esp + 0xc], 0xb26bdde0
lea ecx, [esp + 0x138]
mov dword [esp + 0x18], 0xffffffff
push esi
call fcn.00421789
mov dword [esp + 0x20], 0xfffffffd
mov dword [esp + 0x20], 0xb2b3a3c3
mov dword [esp + 0x58], 0
jmp 0x436ae2
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x138]
mov dword [eax + ecx*4], 0x1eaa473e
inc dword [esp + 0x58]
cmp dword [esp + 0x58], esi
jl 0x436acc
mov dword [esp + 0xc], 0xfffffff6
jmp 0x436d37
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x15c]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], 0x9140de19
mov dword [esp + 0x20], 0x22c08f49
mov dword [esp + 0x20], 0x842c5acc
mov dword [esp + 0x20], 0x5a2c03fd
mov dword [esp + 0x20], 0xfffffffb
push 3
call fcn.00421789
mov dword [esp + 0x50], 0
jmp 0x436b51
mov eax, dword [esp + 0x50]
mov dword [esp + eax*4 + 0x54], 0xfffffff7
inc dword [esp + 0x50]
cmp dword [esp + 0x50], ebx
jl 0x436b41
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x50]
call fcn.0043523b
cmp dword [esp + 0xc], 0
jne 0x436b96
mov eax, dword [esp + 0x54]
cmp dword [esp + 0xc], eax
jne 0x436b92
mov eax, dword [esp + 0x54]
mov ecx, 0x90a3cfce
cmp ecx, eax
mov eax, dword [esp + 0xc]
sbb ecx, ecx
inc ecx
add eax, ecx
cmp eax, dword [esp + 0x54]
jge 0x436b96
xor edx, edx
jmp 0x436b98
mov edx, ebx
mov eax, dword [esp + 0x54]
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0xc]
sete cl
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x12
cmp dword [esp + 0x10], 0xffffffe6
je 0x436d27
mov edi, dword [esp + 0x138]
mov dword [esp + 0x4c], 0xfff8
lea ecx, [esp + 0x120]
mov dword [esp + 0x18], 0x707e294b
mov dword [esp + 0x5c], 0x61b8
push esi
call fcn.00421789
mov dword [esp + 0x20], 0x1cd5
mov dword [esp + 0x74], 0x1c9e
mov dword [esp + 0x38], 0
jmp 0x436c21
mov eax, dword [esp + 0x38]
mov dword [esp + eax*4 + 0x114], 0x7da19ae8
inc dword [esp + 0x38]
cmp dword [esp + 0x38], 3
jl 0x436c0e
lea edx, [esp + 0x120]
lea ecx, [esp + 0x38]
call fcn.0043533b
cmp dword [esp + 0x4c], 0
je 0x436cec
mov dword [esp + 0x18], 0xfd8c6581
cmp dword [esp + 0x18], 0
je 0x436c7f
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x18]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp eax, edx
setl cl
cmp ecx, dword [esp + 0x118]
jg 0x436c7f
mov edx, ebx
jmp 0x436c81
xor edx, edx
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cmp edx, eax
mov eax, 0xd4826422
setg cl
cmp eax, ecx
mov eax, dword [esp + 0xc]
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, eax
mov eax, dword [esp + 0x120]
setne dl
mov dword [eax], edx
xor edx, edx
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x18], eax
imul ecx, dword [esp + 0x18], 0xd89b
mov eax, dword [esp + 0x20]
cmp ecx, eax
mov eax, dword [esp + 0x5c]
setge dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [esp + 0xc]
setge bl
xor ecx, ecx
cmp ebx, eax
setne cl
xor ebx, ebx
inc ebx
cmp ecx, dword [esp + 0x118]
jle 0x436cec
mov edx, ebx
jmp 0x436cee
xor edx, edx
mov eax, dword [esp + 0x4c]
xor ecx, ecx
cmp edx, eax
mov dword [edi + 8], edx
push 0xfffffffffffffffd
sete cl
pop eax
cmp eax, ecx
lea ecx, [esp + 0x120]
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
dec dword [esp + 0x74]
call fcn.00421a31
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe6
jne 0x436bcf
lea ecx, [esp + 0x15c]
call fcn.00421a31
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 0xffffffe7
je 0x436af5
lea ecx, [esp + 0x138]
call fcn.00421a31
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret