Function at 0x486e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4533
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x52f2b0]
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 + 0x354], 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 0x486ed0
sub eax, edi
push eax
push str.RegistryKey
lea ecx, [ebp - 0x34]
call fcn.004066c0
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.00483ca0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00406610
cmp dword [ebp - 0x3c], 0x10
jb 0x486f1e
mov edx, dword [ebp - 0x50]
push edx
call fcn.004d88be
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 0x486f44
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d88be
add esp, 4
cmp dword [esi + 0x54], ebx
je 0x487a92
cmp byte [esi + 0x4ed], bl
jne 0x4870f4
push pe_nt_image_headers32
lea ecx, [ebp - 0x18c]
push ecx
mov dword [esi + 0x4d8], ebx
mov dword [esi + 0x4dc], 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 0x486f80
sub eax, edx
cmp byte [ebp + eax - 0x18d], 0x5c
je 0x486fb2
lea edi, [ebp - 0x18c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x486fa0
mov dx, word [0x4ffc0c]
mov word [edi], dx
lea edi, [ebp - 0x18c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x486fc0
mov eax, dword [str.popcinfo.dat]
mov ecx, dword [0x503d80]
mov edx, dword [0x503d84]
mov dword [edi], eax
mov al, byte [0x503d88]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x18c]
mov dword [edi + 8], edx
push 0x503dd8
push ecx
mov byte [edi + 0xc], al
call fcn.004dac27
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x4870f4
mov edi, eax
push edi
push 2
lea edx, [ebp - 0x16]
push 1
push edx
call fcn.004db091
add esp, 0x10
test eax, eax
je 0x4870eb
mov ax, word [ebp - 0x16]
cmp ax, 0x100
jae 0x487090
movzx eax, ax
push edi
push 1
push eax
mov byte [ebp + eax - 0x28c], bl
lea eax, [ebp - 0x28c]
push eax
call fcn.004db091
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x487057
mov edi, dword [esi + 0xc]
jmp 0x48705a
lea edi, [esi + 0xc]
lea eax, [ebp - 0x28c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x487084
cmp cl, bl
je 0x487080
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x487084
add eax, 2
add edi, 2
cmp cl, bl
jne 0x487060
xor eax, eax
jmp 0x487089
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov edi, dword [ebp - 0x38]
je 0x4870b5
push 1
push 4
push edi
call fcn.004dab6a
push edi
push 2
lea eax, [ebp - 0x16]
push 1
push eax
call fcn.004db091
add esp, 0x1c
test eax, eax
jne 0x487023
jmp 0x4870eb
push edi
push 2
lea ecx, [ebp - 0x14]
push 1
push ecx
call fcn.004db091
movsx edx, word [ebp - 0x14]
push edi
push 2
lea eax, [ebp - 0x14]
push 1
push eax
mov dword [esi + 0x4d8], edx
call fcn.004db091
movsx ecx, word [ebp - 0x14]
mov edi, dword [ebp - 0x38]
add esp, 0x20
mov dword [esi + 0x4dc], ecx
push edi
call fcn.004da1b0
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 0x487110
sub eax, edx
push eax
push str.ReferId
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edi, [esi + 0x318]
push edi
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00486d70
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x487159
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d88be
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 0x487170
sub eax, ecx
push eax
push str.ReferId
lea ecx, [ebp - 0x34]
call fcn.004066c0
push edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00483ca0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00406610
cmp dword [ebp - 0x3c], 0x10
jb 0x4871bf
mov eax, dword [ebp - 0x50]
push eax
call fcn.004d88be
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 0x4871e5
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
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.00419760
push str.referid
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 4], 5
call fcn.004196b0
push edi
push eax
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 6
call fcn.00419810
add esp, 0x24
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x358]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00406610
cmp dword [ebp - 0x3c], 0x10
jb 0x487249
mov eax, dword [ebp - 0x50]
push eax
call fcn.004d88be
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
jb 0x487268
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
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 0x487291
mov edx, dword [ebp - 0x88]
push edx
call fcn.004d88be
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 0x4872a6
sub eax, edx
push eax
push str.RegisterLink
lea ecx, [ebp - 0x34]
call fcn.004066c0
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.00486d70
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4872e9
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
mov eax, str.MusicVolume
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 0x487300
sub eax, edx
push eax
push str.MusicVolume
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.00486e00
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
jb 0x48734f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x487360
fild dword [ebp - 0x18]
fmul qword [0x4fcfa0]
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 0x487375
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xa
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4873bd
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4873ce
fild dword [ebp - 0x18]
fmul qword [0x4fcfa0]
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 0x4873e3
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x48742b
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x487439
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x440], 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 0x487450
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x487498
mov edx, dword [ebp - 0x30]
push edx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4874a9
cmp dword [ebp - 0x18], ebx
sete al
mov byte [esi + 0x2e2], 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 0x4874c0
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0xd
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x487508
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x48751b
cmp dword [ebp - 0x18], ebx
setne cl
push ecx
mov ecx, esi
call fcn.00480910
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 0x487530
sub eax, edx
push eax
push str.DontUpdate
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xe
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x487578
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x487589
cmp dword [ebp - 0x18], ebx
setne dl
mov byte [esi + 0x2ca], 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 0x4875a0
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xf
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4875e8
mov edx, dword [ebp - 0x30]
push edx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4875f9
cmp dword [ebp - 0x18], ebx
setne al
mov byte [esi + 0x308], 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 0x487610
sub eax, edx
push eax
push str.DownloadId
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x487654
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x487662
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x350], 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 0x487677
sub eax, edx
push eax
push str.Variation
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [esi + 0x334]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x11
call fcn.00486d70
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4876bf
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
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 0x4876d4
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [esi + 0x559]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x12
call fcn.00486e50
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x48771c
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
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 0x487731
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x13
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x487779
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
mov edi, 0x64
je 0x4877a7
cmp byte [esi + 0x4ed], bl
jne 0x48779e
mov edx, dword [esi + 0x4d8]
cmp edx, dword [ebp - 0x18]
je 0x4877a7
mov dword [esi + 0x4d8], edi
jmp 0x4877a7
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x4d8], 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 0x4877c0
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x14
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x487809
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x487832
cmp byte [esi + 0x4ed], bl
jne 0x487829
mov ecx, dword [esi + 0x4dc]
cmp ecx, dword [ebp - 0x18]
je 0x487832
mov dword [esi + 0x4dc], edi
jmp 0x487832
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x4dc], 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 0x487847
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x15
call fcn.00486e00
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
or edi, 0xffffffff
cmp eax, 0x10
mov dword [ebp - 4], edi
jb 0x487891
mov edx, dword [ebp - 0x30]
push edx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4878a1
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3d4], eax
jmp 0x4878b6
lea ecx, [ebp - 0x38]
push ecx
call fcn.004dbed6
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [esi + 0x3d4], 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 0x4878d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4878d0
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x16
call fcn.00486e00
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], edi
jb 0x487915
mov edx, dword [ebp - 0x30]
push edx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x487926
cmp dword [ebp - 0x18], ebx
sete al
mov byte [esi + 0x4e1], 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 0x487940
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x487940
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x34]
call fcn.004066c0
push 1
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x17
call fcn.00486050
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], edi
jb 0x487980
mov edx, dword [ebp - 0x30]
push edx
call fcn.004d88be
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 0x487995
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x34]
call fcn.004066c0
lea edi, [esi + 0x3f4]
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x18
call fcn.00486d70
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4879e1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004d88be
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4879f5
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x3d8]
call fcn.00406610
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 0x487a10
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x70]
call fcn.004066c0
lea edi, [esi + 0x410]
push edi
lea edx, [ebp - 0x70]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x19
call fcn.00486d70
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x487a59
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004d88be
add esp, 4
mov edx, dword [esi]
push edi
lea eax, [esi + 0x3f4]
push eax
mov ecx, esi
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
call dword [edx + 0x54]
mov cl, byte [esi + 0x42c]
or cl, al
cmp byte [esi + 0x4ed], bl
mov byte [esi + 0x42c], cl
je 0x487a92
mov byte [esi + 0x2e2], 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.004d9f7e
mov esp, ebp
pop ebp
ret