Function at 0x475404
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x475d7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
cmp byte [eax - 0x49], 0
je 0x47542c
mov eax, dword [ebp + 8]
cmp byte [eax - 0x4a], 0
jne 0x475447
mov eax, dword [ebp + 8]
cmp byte [eax - 0x49], 0
je 0x4754c0
call fcn.0048fab8
call fcn.0048fbc4
test al, al
je 0x4754c0
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 1
jne 0x475459
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x40
je 0x4754a4
call fcn.0048fab8
call fcn.0048fbc4
test al, al
je 0x47547c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
mov edx, 0xff00001d
call fcn.004681cc
jmp 0x47548f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
mov edx, 0xff00000d
call fcn.004681cc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0xc]
mov edx, 0xff00000e
call fcn.0046785c
jmp 0x4754c0
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x4754c0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
mov edx, 0xff00001e
call fcn.004681cc
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
je 0x4754de
mov eax, dword [ebp + 8]
cmp byte [eax - 0x49], 0
je 0x4754ef
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
cmp byte [eax + 0x34], 0
jne 0x4754ef
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004685b0
mov eax, dword [ebp + 8]
cmp dword [eax - 0x30], 0
je 0x475501
mov eax, dword [ebp + 8]
mov byte [eax - 0x31], 0
jmp 0x47552f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
mov edx, dword [0x4725e8]
call fcn.00403d08
test al, al
je 0x475528
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 0x47552f
mov eax, dword [ebp + 8]
mov byte [eax - 0x31], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
dec eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x30]
mov edx, 0x475d98
call fcn.00405bf0
jne 0x475592
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004685b0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
add eax, 2
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x18], edx
mov eax, dword [ebp + 8]
mov byte [eax - 0x4b], 0
jmp 0x475a24
mov eax, dword [ebp + 8]
cmp dword [eax - 0x2c], 0
je 0x4755e2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xffffffff
jle 0x4755bb
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
call fcn.00490d18
cmp ebx, eax
jl 0x4755e6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
cmp byte [eax + 0x34], 0
je 0x4755e2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov esi, dword [eax + 0x48]
test esi, esi
je 0x4755e6
mov eax, dword [ebp + 8]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x4755e6
xor eax, eax
jmp 0x4755e8
mov al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x32], al
mov eax, dword [ebp + 8]
cmp byte [eax - 0x32], 0
jne 0x47561a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ebx, dword [eax + 0x48]
test ebx, ebx
je 0x4759c7
mov eax, dword [ebp + 8]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x4759c7
mov eax, dword [ebp + 8]
mov byte [eax - 0x4b], 1
mov eax, dword [ebp + 8]
cmp byte [eax - 0x32], 0
je 0x475656
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x2c]
sub eax, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x2c]
add eax, dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
jmp 0x475674
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
sub eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
cmp byte [eax + 0x34], 0
je 0x475737
mov eax, dword [ebp + 8]
dec dword [eax - 0x20]
mov eax, dword [ebp + 8]
inc dword [eax - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
call fcn.004681c4
mov edx, dword [ebp + 8]
mov dword [edx - 0x50], eax
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 1
jne 0x4756f3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
call fcn.004681c4
mov edx, dword [ebp + 8]
mov dword [edx - 0x50], eax
mov edx, 0xff000014
mov eax, 0xff00000f
call fcn.0046db6c
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
call fcn.004681a0
mov eax, dword [ebp + 8]
lea edx, [eax - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004685b0
jmp 0x475717
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
mov edx, 0xff00000f
call fcn.004681cc
mov eax, dword [ebp + 8]
lea edx, [eax - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004685b0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
call fcn.004681cc
mov eax, dword [ebp + 8]
dec dword [eax - 0x18]
mov eax, dword [ebp + 8]
inc dword [eax - 0x1c]
mov eax, dword [ebp + 8]
cmp byte [eax - 0x32], 0
je 0x47589f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xffffffff
jle 0x47579c
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
call fcn.00490d18
cmp ebx, eax
jge 0x47579c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
movzx eax, byte [eax + 0x35]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x20]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
call fcn.00491028
jmp 0x4759ad
mov dl, 1
mov eax, dword [0x4662e0]
call fcn.0046b170
mov edx, dword [ebp + 8]
mov dword [edx - 0x54], eax
xor eax, eax
push ebp
push 0x475898
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
push 0x7ff8
push 0
call sub.user32.dll_GetKeyboardLayoutList
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
call fcn.0046c794
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx - 0x50], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0xc]
mov edx, 0xff000012
call fcn.0046785c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0x1c]
sub edx, esi
sub edx, eax
sar edx, 1
jns 0x475830
adc edx, 0
mov eax, dword [ebp + 8]
add edx, esi
inc edx
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx - 0x20]
sub edx, ebx
sub edx, eax
sar edx, 1
jns 0x475859
adc edx, 0
mov eax, dword [ebp + 8]
add edx, ebx
inc edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
pop ecx
call fcn.00468504
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0xc]
call fcn.0046785c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4759ad
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x54]
call fcn.00403b68
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [eax - 0x20]
lea edi, [edx - 0x48]
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 - 0x28]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x20]
cmp eax, edx
jge 0x47591b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x20]
sub edx, eax
sar edx, 1
jns 0x4758f0
adc edx, 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
sub eax, edx
inc eax
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x18]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax - 0x20], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x1c]
cmp eax, edx
jge 0x475983
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x1c]
sub edx, eax
sar edx, 1
jns 0x47595c
adc edx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax - 0x1c]
inc edx
mov eax, dword [ebp + 8]
mov dword [eax - 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.00468678
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [eax - 0x48]
lea edi, [edx - 0x20]
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 - 0x28]
cmp byte [eax + 0x34], 0
je 0x475a24
mov eax, dword [ebp + 8]
dec dword [eax - 0x18]
mov eax, dword [ebp + 8]
dec dword [eax - 0x14]
jmp 0x475a24
mov eax, dword [ebp + 8]
cmp dword [eax - 0x2c], 0
je 0x475a05
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x475a05
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x2c]
sub eax, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x2c]
add eax, dword [edx + 0x30]
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
jmp 0x475a1d
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 - 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 8]
mov byte [eax - 0x4b], 0
mov eax, dword [ebp + 8]
dec dword [eax - 0x20]
mov eax, dword [ebp + 8]
dec dword [eax - 0x1c]
mov eax, dword [ebp + 8]
add dword [eax - 0x18], 2
mov eax, dword [ebp + 8]
add dword [eax - 0x14], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
cmp byte [eax + 0x34], 0
jne 0x475a65
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
je 0x475a91
mov eax, dword [ebp + 8]
cmp byte [eax - 0x4b], 0
je 0x475a91
mov eax, dword [ebp + 8]
cmp byte [eax - 0x49], 0
jne 0x475a91
push 0xf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
movzx eax, byte [eax + 0x34]
mov eax, dword [eax*4 + 0x4a6a8c]
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004689a8
push eax
call fcn.004082d4
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
je 0x475ae6
mov eax, dword [ebp + 8]
cmp byte [eax - 0x4b], 0
je 0x475ab0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
dec eax
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
cmp byte [eax - 0x55], 0
je 0x475ac2
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x475ad5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x14]
mov edx, 0xff00000d
call fcn.004681cc
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004685b0
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x475b73
mov eax, dword [ebp + 8]
cmp byte [eax - 0x55], 0
je 0x475b73
mov eax, dword [ebp + 8]
cmp byte [eax - 0x49], 0
je 0x475b0e
mov eax, dword [ebp + 8]
cmp byte [eax - 0x4a], 0
jne 0x475b73
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
je 0x475b35
push 0xf
push 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004689a8
push eax
call fcn.004082d4
jmp 0x475b5a
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x40
je 0x475b5a
push 0xf
push 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.004689a8
push eax
call fcn.004082d4
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
jne 0x475b73
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or ecx, 0xffffffff
xor edx, edx
call fcn.00407bd4
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
je 0x475b85
mov eax, dword [ebp + 8]
cmp byte [eax - 0x4b], 0
jne 0x475b92
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
dec eax
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
add dword [eax - 0x10], 2
mov eax, dword [ebp + 8]
dec dword [eax - 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x31]
movzx eax, word [eax*2 + 0x4a6a84]
or ax, 0x60
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx - 0x38], eax
mov eax, dword [ebp + 8]
cmp byte [eax - 0x56], 0
je 0x475bd7
mov eax, dword [ebp + 8]
test byte [eax + 0xd], 1
je 0x475bd7
mov eax, dword [ebp + 8]
or dword [eax - 0x38], 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [eax - 0x10]
lea edi, [edx - 0x48]
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 0x475c05
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0xc]
movzx edx, byte [0x475d9c]
call fcn.00467c18
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x33]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
or eax, 0x400
or eax, 0x100
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00473c24
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
mov edx, dword [ebp + 8]
mov dword [edx - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x3c]
mov eax, dword [ebp + 8]
sub ecx, dword [eax - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0xc]
sub ecx, eax
sar ecx, 1
jns 0x475c78
adc ecx, 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
xor edx, edx
call fcn.00407bd4
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x475cb2
mov eax, dword [ebp + 8]
cmp byte [eax - 0x33], 0
je 0x475cb2
mov eax, dword [ebp + 8]
cmp byte [eax - 0x55], 0
je 0x475cb2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
xor ecx, ecx
mov edx, 1
call fcn.00407bd4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x33]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00473c24
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
cmp word [eax + 0x5c], 0
je 0x475d68
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x475d68
mov eax, dword [ebp + 8]
cmp byte [eax - 0x57], 0
je 0x475d0d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
cmp dword [eax + 0x58], 0
jne 0x475d68
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
movzx eax, word [eax + 0x5c]
call fcn.00472ac0
mov eax, dword [ebp + 8]
mov dword [eax - 0x10], 0xa
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
call fcn.00468804
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]
add eax, 0xfffffff0
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 0x33]
push eax
push 2
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov ecx, dword [ebp - 4]
call fcn.00473c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475d85
lea eax, [ebp - 4]
call fcn.004055ac
ret