Function at 0x46c160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9863
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov esi, ecx
mov eax, str.RegistryKey
push edi
mov byte [esi + 0x380], 1
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c1b0
sub eax, edi
push eax
push str.RegistryKey
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edi, [esi + 0x40]
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00468e80
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00408e40
cmp dword [ebp - 0x3c], 0x10
jb 0x46c1fe
mov edx, dword [ebp - 0x50]
push edx
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 4], 0xffffffff
jb 0x46c224
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e11d0
add esp, 4
cmp dword [esi + 0x54], ebx
je 0x46cd72
cmp byte [esi + 0x51d], bl
jne 0x46c3d4
push 0x100
lea ecx, [ebp - 0x18c]
push ecx
mov dword [esi + 0x508], ebx
mov dword [esi + 0x50c], ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c260
sub eax, edx
cmp byte [ebp + eax - 0x18d], 0x5c
je 0x46c292
lea edi, [ebp - 0x18c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x46c280
mov dx, word [0x504804]
mov word [edi], dx
lea edi, [ebp - 0x18c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x46c2a0
mov eax, dword [str.popcinfo.dat]
mov ecx, dword [0x5048c4]
mov edx, dword [0x5048c8]
mov dword [edi], eax
mov al, byte [0x5048cc]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x18c]
mov dword [edi + 8], edx
push 0x4fe678
push ecx
mov byte [edi + 0xc], al
call fcn.004e1c8b
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x46c3d4
mov edi, eax
push edi
push 2
lea edx, [ebp - 0x16]
push 1
push edx
call fcn.004e225b
add esp, 0x10
test eax, eax
je 0x46c3cb
mov ax, word [ebp - 0x16]
cmp ax, 0x100
jae 0x46c370
movzx eax, ax
push edi
push 1
push eax
mov byte [ebp + eax - 0x28c], bl
lea eax, [ebp - 0x28c]
push eax
call fcn.004e225b
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x46c337
mov edi, dword [esi + 0xc]
jmp 0x46c33a
lea edi, [esi + 0xc]
lea eax, [ebp - 0x28c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x46c364
cmp cl, bl
je 0x46c360
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x46c364
add eax, 2
add edi, 2
cmp cl, bl
jne 0x46c340
xor eax, eax
jmp 0x46c369
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov edi, dword [ebp - 0x38]
je 0x46c395
push 1
push 4
push edi
call fcn.004e38df
push edi
push 2
lea eax, [ebp - 0x16]
push 1
push eax
call fcn.004e225b
add esp, 0x1c
test eax, eax
jne 0x46c303
jmp 0x46c3cb
push edi
push 2
lea ecx, [ebp - 0x14]
push 1
push ecx
call fcn.004e225b
movsx edx, word [ebp - 0x14]
push edi
push 2
lea eax, [ebp - 0x14]
push 1
push eax
mov dword [esi + 0x508], edx
call fcn.004e225b
movsx ecx, word [ebp - 0x14]
mov edi, dword [ebp - 0x38]
add esp, 0x20
mov dword [esi + 0x50c], ecx
push edi
call fcn.004e1bde
add esp, 4
mov eax, str.ReferId
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c3f0
sub eax, edx
push eax
push str.ReferId
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edi, [esi + 0x328]
push edi
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0046c050
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x46c439
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e11d0
add esp, 4
mov eax, str.ReferId
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x46c450
sub eax, ecx
push eax
push str.ReferId
lea ecx, [ebp - 0x34]
call fcn.00408ff0
push edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00468e80
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00408e40
cmp dword [ebp - 0x3c], 0x10
jb 0x46c49f
mov eax, dword [ebp - 0x50]
push eax
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 4], 0xffffffff
jb 0x46c4c5
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
lea edx, [esi + 8]
push edx
lea eax, [ebp - 0x8c]
push str.http:__www.popcap.com_register.php_theGame
push eax
call fcn.0040c710
push str.referid
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 4], 5
call fcn.00409e60
push edi
push eax
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 6
call fcn.00409f10
add esp, 0x24
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x384]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00408e40
cmp dword [ebp - 0x3c], 0x10
jb 0x46c529
mov eax, dword [ebp - 0x50]
push eax
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
jb 0x46c548
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 0xffffffff
jb 0x46c571
mov edx, dword [ebp - 0x88]
push edx
call fcn.004e11d0
add esp, 4
mov eax, str.RegisterLink
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c586
sub eax, edx
push eax
push str.RegisterLink
lea ecx, [ebp - 0x34]
call fcn.00408ff0
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.0046c050
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x46c5c9
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
mov eax, 0x5048b0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c5e0
sub eax, edx
push eax
push 0x5048b0
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.0046c0e0
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c62f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c640
fild dword [ebp - 0x18]
fmul qword [0x501500]
fstp qword [esi + 0x68]
mov eax, str.SfxVolume
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c655
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xa
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c69d
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c6ae
fild dword [ebp - 0x18]
fmul qword [0x501500]
fstp qword [esi + 0x70]
mov eax, str.Muted
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c6c3
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c70b
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c719
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x470], edx
mov eax, str.ScreenMode
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c730
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c778
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c789
cmp dword [ebp - 0x18], ebx
sete al
mov byte [esi + 0x2f2], al
mov eax, str.CustomCursors
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c7a0
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0xd
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c7e8
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c7fb
cmp dword [ebp - 0x18], ebx
setne cl
push ecx
mov ecx, esi
call fcn.004651a0
mov eax, str.DontUpdate
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c810
sub eax, edx
push eax
push str.DontUpdate
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xe
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c858
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c869
cmp dword [ebp - 0x18], ebx
setne dl
mov byte [esi + 0x2da], dl
mov eax, str.ITSuccess
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c880
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xf
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c8c8
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c8d9
cmp dword [ebp - 0x18], ebx
setne al
mov byte [esi + 0x318], al
mov eax, str.DownloadId
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c8f0
sub eax, edx
push eax
push str.DownloadId
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c934
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46c942
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x360], ecx
mov eax, str.Variation
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c957
sub eax, edx
push eax
push str.Variation
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [esi + 0x344]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x11
call fcn.0046c050
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c99f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
mov eax, str.WaitForVSync
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46c9b4
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [esi + 0x58d]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x12
call fcn.0046c130
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46c9fc
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
mov eax, str.TimesPlayed
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46ca11
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x13
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x46ca59
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
mov edi, 0x64
je 0x46ca87
cmp byte [esi + 0x51d], bl
jne 0x46ca7e
mov edx, dword [esi + 0x508]
cmp edx, dword [ebp - 0x18]
je 0x46ca87
mov dword [esi + 0x508], edi
jmp 0x46ca87
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x508], eax
mov eax, str.TimesExecuted
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46caa0
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x14
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x46cae9
mov eax, dword [ebp - 0x30]
push eax
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46cb12
cmp byte [esi + 0x51d], bl
jne 0x46cb09
mov ecx, dword [esi + 0x50c]
cmp ecx, dword [ebp - 0x18]
je 0x46cb12
mov dword [esi + 0x50c], edi
jmp 0x46cb12
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x50c], edx
mov eax, str.LastVerCheckQueryTime
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46cb27
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x15
call fcn.0046c0e0
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
or edi, 0xffffffff
cmp eax, 0x10
mov dword [ebp - 4], edi
jb 0x46cb71
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46cb81
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x400], eax
jmp 0x46cb96
lea ecx, [ebp - 0x38]
push ecx
call fcn.004e3e46
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [esi + 0x400], edx
mov eax, str.InProgress
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
jmp 0x46cbb0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46cbb0
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x16
call fcn.0046c0e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], edi
jb 0x46cbf5
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46cc06
cmp dword [ebp - 0x18], ebx
sete al
mov byte [esi + 0x511], al
mov eax, str.InProgress
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
jmp 0x46cc20
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46cc20
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x34]
call fcn.00408ff0
push 1
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x17
call fcn.0046b330
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], edi
jb 0x46cc60
mov edx, dword [ebp - 0x30]
push edx
call fcn.004e11d0
add esp, 4
mov eax, str.RegName
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46cc75
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x34]
call fcn.00408ff0
lea edi, [esi + 0x420]
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x18
call fcn.0046c050
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x46ccc1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004e11d0
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x46ccd5
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x404]
call fcn.00408e40
mov eax, str.RegCode
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46ccf0
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x70]
call fcn.00408ff0
lea edi, [esi + 0x43c]
push edi
lea edx, [ebp - 0x70]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x19
call fcn.0046c050
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x46cd39
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004e11d0
add esp, 4
mov edx, dword [esi]
push edi
lea eax, [esi + 0x420]
push eax
mov ecx, esi
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
call dword [edx + 0x58]
mov cl, byte [esi + 0x458]
or cl, al
cmp byte [esi + 0x51d], bl
mov byte [esi + 0x458], cl
je 0x46cd72
mov byte [esi + 0x2f2], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004e19df
mov esp, ebp
pop ebp
ret