Function at 0x400352e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x40035c42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x40035308
mov eax, dword [ebp + 8]
cmp byte [eax - 0x22], 0
jne 0x40035323
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x4003539c
call fcn.40031e6c
call fcn.40031f74
test al, al
je 0x4003539c
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 1
jne 0x40035335
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x40
je 0x40035380
call fcn.40031e6c
call fcn.40031f74
test al, al
je 0x40035358
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
mov edx, 0xff00001d
call fcn.40026ba8
jmp 0x4003536b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
mov edx, 0xff00000d
call fcn.40026ba8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0xc]
mov edx, 0xff00000e
call fcn.400262ec
jmp 0x4003539c
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x4003539c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
mov edx, 0xff00001e
call fcn.40026ba8
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x400353ba
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x400353cb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
cmp byte [eax + 0x38], 0
jne 0x400353cb
mov eax, dword [ebp + 8]
lea edx, [eax - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.40026f4c
mov eax, dword [ebp + 8]
cmp dword [eax - 0x30], 0
je 0x400353dd
mov eax, dword [ebp + 8]
mov byte [eax - 0x31], 0
jmp 0x4003540b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
mov edx, dword [0x400332f4]
call fcn.40003e4c
test al, al
je 0x40035404
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
movzx eax, byte [eax + 0x60]
mov edx, dword [ebp + 8]
mov byte [edx - 0x31], al
jmp 0x4003540b
mov eax, dword [ebp + 8]
mov byte [eax - 0x31], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
dec eax
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x30]
mov edx, 0x40035c58
call fcn.4000508c
jne 0x4003546e
mov eax, dword [ebp + 8]
lea edx, [eax - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.40026f4c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 2
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
mov eax, dword [ebp + 8]
mov byte [eax - 0x39], 0
jmp 0x40035900
mov eax, dword [ebp + 8]
cmp dword [eax - 0x40], 0
je 0x400354be
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0x40]
cmp ebx, 0xffffffff
jle 0x40035497
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.4004d1f8
cmp ebx, eax
jl 0x400354c2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
cmp byte [eax + 0x38], 0
je 0x400354be
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x400354c2
mov eax, dword [ebp + 8]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x400354c2
xor eax, eax
jmp 0x400354c4
mov al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x41], al
mov eax, dword [ebp + 8]
cmp byte [eax - 0x41], 0
jne 0x400354f6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0x4c]
test ebx, ebx
je 0x400358a3
mov eax, dword [ebp + 8]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x400358a3
mov eax, dword [ebp + 8]
mov byte [eax - 0x39], 1
mov eax, dword [ebp + 8]
cmp byte [eax - 0x41], 0
je 0x40035532
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x40]
sub eax, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x40]
add eax, dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
jmp 0x40035550
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sub eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
cmp byte [eax + 0x38], 0
je 0x40035613
mov eax, dword [ebp + 8]
dec dword [eax - 0x10]
mov eax, dword [ebp + 8]
inc dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
call fcn.40026ba0
mov edx, dword [ebp + 8]
mov dword [edx - 0x48], eax
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 1
jne 0x400355cf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
call fcn.40026ba0
mov edx, dword [ebp + 8]
mov dword [edx - 0x48], eax
mov edx, 0xff000014
mov eax, 0xff00000f
call fcn.4002d99c
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
call fcn.40026b7c
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.40026f4c
jmp 0x400355f3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
mov edx, 0xff00000f
call fcn.40026ba8
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.40026f4c
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
call fcn.40026ba8
mov eax, dword [ebp + 8]
dec dword [eax - 8]
mov eax, dword [ebp + 8]
inc dword [eax - 0xc]
mov eax, dword [ebp + 8]
cmp byte [eax - 0x41], 0
je 0x4003577b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0x40]
cmp ebx, 0xffffffff
jle 0x40035678
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.4004d1f8
cmp ebx, eax
jge 0x40035678
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
movzx eax, byte [eax + 0x39]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.4004d4e8
jmp 0x40035889
mov dl, 1
mov eax, dword [0x4002528c]
call fcn.4002b66c
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
xor eax, eax
push ebp
push 0x40035774
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push 0x7ff8
push 0
call sub.user32.dll_GetKeyboardLayoutNameA
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.4002c768
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0xc]
mov edx, 0xff000012
call fcn.400262ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0xc]
sub edx, esi
sub edx, eax
sar edx, 1
jns 0x4003570c
adc edx, 0
mov eax, dword [ebp + 8]
add edx, esi
inc edx
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx - 0x10]
sub edx, ebx
sub edx, eax
sar edx, 1
jns 0x40035735
adc edx, 0
mov eax, dword [ebp + 8]
add edx, ebx
inc edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
pop ecx
call fcn.40026ea0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0xc]
call fcn.400262ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40035889
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.40003cc0
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [eax - 0x10]
lea edi, [edx - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x10]
cmp eax, edx
jge 0x400357f7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x10]
sub edx, eax
sar edx, 1
jns 0x400357cc
adc edx, 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sub eax, edx
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax - 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0xc]
cmp eax, edx
jge 0x4003585f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0xc]
sub edx, eax
sar edx, 1
jns 0x40035838
adc edx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax - 0xc]
inc edx
mov eax, dword [ebp + 8]
mov dword [eax - 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.40027014
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [eax - 0x5c]
lea edi, [edx - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
cmp byte [eax + 0x38], 0
je 0x40035900
mov eax, dword [ebp + 8]
dec dword [eax - 8]
mov eax, dword [ebp + 8]
dec dword [eax - 4]
jmp 0x40035900
mov eax, dword [ebp + 8]
cmp dword [eax - 0x40], 0
je 0x400358e1
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x400358e1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x40]
sub eax, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x40]
add eax, dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
jmp 0x400358f9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov byte [eax - 0x39], 0
mov eax, dword [ebp + 8]
dec dword [eax - 0x10]
mov eax, dword [ebp + 8]
dec dword [eax - 0xc]
mov eax, dword [ebp + 8]
add dword [eax - 8], 2
mov eax, dword [ebp + 8]
add dword [eax - 4], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
cmp byte [eax + 0x38], 0
jne 0x40035941
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x4003596d
mov eax, dword [ebp + 8]
cmp byte [eax - 0x39], 0
je 0x4003596d
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
jne 0x4003596d
push 0xf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
movzx eax, byte [eax + 0x38]
mov eax, dword [eax*4 + 0x4009446c]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.4002723c
push eax
call fcn.40007538
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x400359c2
mov eax, dword [ebp + 8]
cmp byte [eax - 0x39], 0
je 0x4003598c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
dec eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
cmp byte [eax - 0x5d], 0
je 0x4003599e
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x400359b1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
mov edx, 0xff00000d
call fcn.40026ba8
mov eax, dword [ebp + 8]
lea edx, [eax - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.40026f4c
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x40035a4f
mov eax, dword [ebp + 8]
cmp byte [eax - 0x5d], 0
je 0x40035a4f
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x400359ea
mov eax, dword [ebp + 8]
cmp byte [eax - 0x22], 0
jne 0x40035a4f
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x40035a11
push 0xf
push 2
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.4002723c
push eax
call fcn.40007538
jmp 0x40035a36
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x40
je 0x40035a36
push 0xf
push 4
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.4002723c
push eax
call fcn.40007538
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
jne 0x40035a4f
push 0xffffffffffffffff
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call sub.user32.dll_GetMessageTime
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x40035a61
mov eax, dword [ebp + 8]
cmp byte [eax - 0x39], 0
jne 0x40035a6e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
dec eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
add dword [eax - 0x20], 2
mov eax, dword [ebp + 8]
dec dword [eax - 0x18]
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x31]
movzx eax, word [eax*2 + 0x40094464]
or ax, 0x60
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx - 0x64], eax
mov eax, dword [ebp + 8]
cmp byte [eax - 0x65], 0
je 0x40035ab3
mov eax, dword [ebp + 8]
test byte [eax + 0xd], 1
je 0x40035ab3
mov eax, dword [ebp + 8]
or dword [eax - 0x64], 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [eax - 0x20]
lea edi, [edx - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x20
je 0x40035ae1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0xc]
movzx edx, byte [0x40035c5c]
call fcn.40026678
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x29]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x64]
or eax, 0x400
or eax, 0x100
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
call fcn.40034728
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x5c]
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x58]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x1c]
sub eax, edx
sar eax, 1
jns 0x40035b54
adc eax, 0
push eax
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call sub.user32.dll_GetMessageTime
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x40035b8e
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x40035b8e
mov eax, dword [ebp + 8]
cmp byte [eax - 0x5d], 0
je 0x40035b8e
push 0
push 1
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call sub.user32.dll_GetMessageTime
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x29]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x64]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
call fcn.40034728
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
movzx ebx, word [eax + 0x60]
test bx, bx
je 0x40035c2c
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x40035c2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, ebx
call fcn.40033784
mov eax, dword [ebp + 8]
mov dword [eax - 0x20], 0xa
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov edx, dword [ebp - 4]
call fcn.40027098
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x20]
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x29]
push eax
push 2
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ecx, dword [ebp - 4]
call fcn.40034728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40035c49
lea eax, [ebp - 4]
call fcn.40004c64
ret