Function at 0x40034980
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x400352c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x400349a8
mov eax, dword [ebp + 8]
cmp byte [eax - 0x22], 0
jne 0x400349c3
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x40034a3c
call fcn.40031e6c
call fcn.40031f74
test al, al
je 0x40034a3c
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 1
jne 0x400349d5
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x40
je 0x40034a20
call fcn.40031e6c
call fcn.40031f74
test al, al
je 0x400349f8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x14]
mov edx, 0xff00001d
call fcn.40026ba8
jmp 0x40034a0b
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 0x40034a3c
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x40034a3c
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 0x40034a4e
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x40034a5f
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 0x40034a71
mov eax, dword [ebp + 8]
mov byte [eax - 0x31], 0
jmp 0x40034a9f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
mov edx, dword [0x400332f4]
call fcn.40003e4c
test al, al
je 0x40034a98
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 0x40034a9f
mov eax, dword [ebp + 8]
mov byte [eax - 0x31], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], 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, 0x400352d8
call fcn.4000508c
jne 0x40034afd
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]
xor edx, edx
mov dword [eax - 0x10], edx
mov eax, dword [ebp + 8]
mov dword [eax - 8], 0xfffffffc
mov eax, dword [ebp + 8]
mov byte [eax - 0x39], 0
jmp 0x40034f98
mov eax, dword [ebp + 8]
cmp dword [eax - 0x40], 0
je 0x40034b4d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0x40]
cmp ebx, 0xffffffff
jle 0x40034b26
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.4004d1f8
cmp ebx, eax
jl 0x40034b51
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
cmp byte [eax + 0x38], 0
je 0x40034b4d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x40034b51
mov eax, dword [ebp + 8]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x40034b51
xor eax, eax
jmp 0x40034b53
mov al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x41], al
mov eax, dword [ebp + 8]
cmp byte [eax - 0x41], 0
jne 0x40034b85
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0x4c]
test ebx, ebx
je 0x40034f3b
mov eax, dword [ebp + 8]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x40034f3b
mov eax, dword [ebp + 8]
mov byte [eax - 0x39], 1
mov eax, dword [ebp + 8]
cmp byte [eax - 0x41], 0
je 0x40034bc1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x40]
add eax, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx - 8], 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 0x40034bdf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx - 8], 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 0x40034caf
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
jne 0x40034caf
mov eax, dword [ebp + 8]
inc dword [eax - 8]
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 0x40034c6b
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 0x40034c8f
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]
inc dword [eax - 0x10]
mov eax, dword [ebp + 8]
inc dword [eax - 0xc]
mov eax, dword [ebp + 8]
cmp byte [eax - 0x41], 0
je 0x40034e17
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0x40]
cmp ebx, 0xffffffff
jle 0x40034d14
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.4004d1f8
cmp ebx, eax
jge 0x40034d14
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 0x40034f21
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 0x40034e10
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 0x40034da8
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 0x40034dd1
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 0x40034f21
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 0x40034e8f
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 0x40034e68
adc edx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax - 0x10]
inc edx
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 + 0x2c]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x10]
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 + 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 0x40034ef7
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 0x40034ed0
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 0x40034f98
mov eax, dword [ebp + 8]
dec dword [eax - 8]
mov eax, dword [ebp + 8]
dec dword [eax - 4]
jmp 0x40034f98
mov eax, dword [ebp + 8]
cmp dword [eax - 0x40], 0
je 0x40034f79
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x40034f79
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x40]
add eax, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx - 8], 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 0x40034f91
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx - 8], 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 0x40034fd0
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x40035005
mov eax, dword [ebp + 8]
cmp byte [eax - 0x39], 0
je 0x40035005
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
jne 0x40035005
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 0x4003505a
mov eax, dword [ebp + 8]
cmp byte [eax - 0x39], 0
je 0x40035024
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
cmp byte [eax - 0x5d], 0
je 0x40035036
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x40035049
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 0x400350e7
mov eax, dword [ebp + 8]
cmp byte [eax - 0x5d], 0
je 0x400350e7
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
je 0x40035082
mov eax, dword [ebp + 8]
cmp byte [eax - 0x22], 0
jne 0x400350e7
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x400350a9
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 0x400350ce
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x40
je 0x400350ce
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 0x400350e7
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 0x400350f9
mov eax, dword [ebp + 8]
cmp byte [eax - 0x39], 0
jne 0x40035106
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], 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 0x4003514b
mov eax, dword [ebp + 8]
test byte [eax + 0xd], 1
je 0x4003514b
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 0x40035179
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0xc]
movzx edx, byte [0x400352dc]
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 - 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 0x400351d4
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 0x40035217
mov eax, dword [ebp + 8]
cmp byte [eax - 0x29], 0
je 0x40035217
mov eax, dword [ebp + 8]
cmp byte [eax - 0x5d], 0
je 0x40035217
mov eax, dword [ebp + 8]
cmp byte [eax - 0x21], 0
jne 0x40035217
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 0x400352ac
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x400352ac
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
sub eax, 0xa
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
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, ebx
call fcn.40033784
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
call fcn.40034728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x400352c9
lea eax, [ebp - 4]
call fcn.40004c64
ret