Function at 0x4d35f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542eb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x58becc]
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 + 0x3a0], 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 0x4d3640
sub eax, edi
push eax
push str.RegistryKey
lea ecx, [ebp - 0x34]
call fcn.0041af60
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.004cfd60
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041ad80
cmp dword [ebp - 0x3c], 0x10
jb 0x4d368e
mov edx, dword [ebp - 0x50]
push edx
call fcn.00527b8e
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 0x4d36b4
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
cmp dword [esi + 0x54], ebx
je 0x4d42d7
cmp byte [esi + 0x549], bl
jne 0x4d3864
push pe_nt_image_headers32
lea ecx, [ebp - 0x18c]
push ecx
mov dword [esi + 0x534], ebx
mov dword [esi + 0x538], 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 0x4d36f0
sub eax, edx
cmp byte [ebp + eax - 0x18d], 0x5c
je 0x4d3722
lea edi, [ebp - 0x18c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4d3710
mov dx, word [0x55734c]
mov word [edi], dx
lea edi, [ebp - 0x18c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4d3730
mov eax, dword [str.popcinfo.dat]
mov ecx, dword [0x55cadc]
mov edx, dword [0x55cae0]
mov dword [edi], eax
mov al, byte [0x55cae4]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x18c]
mov dword [edi + 8], edx
push 0x54cb00
push ecx
mov byte [edi + 0xc], al
call fcn.00528841
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x4d3864
mov edi, eax
push edi
push 2
lea edx, [ebp - 0x16]
push 1
push edx
call fcn.005283d4
add esp, 0x10
test eax, eax
je 0x4d385b
mov ax, word [ebp - 0x16]
cmp ax, 0x100
jae 0x4d3800
movzx eax, ax
push edi
push 1
push eax
mov byte [ebp + eax - 0x28c], bl
lea eax, [ebp - 0x28c]
push eax
call fcn.005283d4
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x4d37c7
mov edi, dword [esi + 0xc]
jmp 0x4d37ca
lea edi, [esi + 0xc]
lea eax, [ebp - 0x28c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4d37f4
cmp cl, bl
je 0x4d37f0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4d37f4
add eax, 2
add edi, 2
cmp cl, bl
jne 0x4d37d0
xor eax, eax
jmp 0x4d37f9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov edi, dword [ebp - 0x38]
je 0x4d3825
push 1
push 4
push edi
call fcn.00529ebc
push edi
push 2
lea eax, [ebp - 0x16]
push 1
push eax
call fcn.005283d4
add esp, 0x1c
test eax, eax
jne 0x4d3793
jmp 0x4d385b
push edi
push 2
lea ecx, [ebp - 0x14]
push 1
push ecx
call fcn.005283d4
movsx edx, word [ebp - 0x14]
push edi
push 2
lea eax, [ebp - 0x14]
push 1
push eax
mov dword [esi + 0x534], edx
call fcn.005283d4
movsx ecx, word [ebp - 0x14]
mov edi, dword [ebp - 0x38]
add esp, 0x20
mov dword [esi + 0x538], ecx
push edi
call fcn.0052829a
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 0x4d3880
sub eax, edx
push eax
push str.ReferId
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edi, [esi + 0x348]
push edi
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004d34e0
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4d38c9
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
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 0x4d38e0
sub eax, ecx
push eax
push str.ReferId
lea ecx, [ebp - 0x34]
call fcn.0041af60
push edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004cfd60
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0041ad80
cmp dword [ebp - 0x3c], 0x10
jb 0x4d392f
mov eax, dword [ebp - 0x50]
push eax
call fcn.00527b8e
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 0x4d3955
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
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.00441360
push str.referid
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 4], 5
call fcn.004412b0
push edi
push eax
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 6
call fcn.0046f7d0
add esp, 0x24
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x3a4]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0041ad80
cmp dword [ebp - 0x3c], 0x10
jb 0x4d39b9
mov eax, dword [ebp - 0x50]
push eax
call fcn.00527b8e
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
jb 0x4d39d8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
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 0x4d3a01
mov edx, dword [ebp - 0x88]
push edx
call fcn.00527b8e
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 0x4d3a16
sub eax, edx
push eax
push str.RegisterLink
lea ecx, [ebp - 0x34]
call fcn.0041af60
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.004d34e0
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4d3a59
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
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 0x4d3a70
sub eax, edx
push eax
push str.MusicVolume
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.004d3570
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3abf
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3ad0
fild dword [ebp - 0x18]
fmul qword [0x5465f8]
fstp qword [esi + 0x78]
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 0x4d3ae5
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xa
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3b2d
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3b41
fild dword [ebp - 0x18]
fmul qword [0x5465f8]
fstp qword [esi + 0x80]
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 0x4d3b56
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3b9e
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3bac
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x490], 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 cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3bc1
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3c09
mov edx, dword [ebp - 0x30]
push edx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3c1a
cmp dword [ebp - 0x18], ebx
sete al
mov byte [esi + 0x30e], al
mov eax, str.PreferredX
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3c30
sub eax, edx
push eax
push str.PreferredX
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea ecx, [esi + 0x60]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0xd
call fcn.004d3570
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3c75
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
mov eax, str.PreferredY
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3c90
sub eax, edx
push eax
push str.PreferredY
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea ecx, [esi + 0x64]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0xe
call fcn.004d3570
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3cd5
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
mov eax, str.CustomCursors
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3cf0
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0xf
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3d38
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3d4b
cmp dword [ebp - 0x18], ebx
setne cl
push ecx
mov ecx, esi
call fcn.004cc0b0
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 0x4d3d60
sub eax, edx
push eax
push str.DontUpdate
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3da4
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3db5
cmp dword [ebp - 0x18], ebx
setne dl
mov byte [esi + 0x2ea], dl
mov eax, str.ITSuccess
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3dd0
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x11
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3e18
mov edx, dword [ebp - 0x30]
push edx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3e29
cmp dword [ebp - 0x18], ebx
setne al
mov byte [esi + 0x338], 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 0x4d3e40
sub eax, edx
push eax
push str.DownloadId
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x12
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3e88
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d3e96
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x380], ecx
mov eax, str.Variation
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
jmp 0x4d3eb0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3eb0
sub eax, edx
push eax
push str.Variation
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [esi + 0x364]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x13
call fcn.004d34e0
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3ef8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
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]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3f10
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [esi + 0x5cb]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x14
call fcn.004d35c0
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3f58
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
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]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d3f70
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x15
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
jb 0x4d3fb8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
mov edi, 0x64
je 0x4d3fe6
cmp byte [esi + 0x549], bl
jne 0x4d3fdd
mov edx, dword [esi + 0x534]
cmp edx, dword [ebp - 0x18]
je 0x4d3fe6
mov dword [esi + 0x534], edi
jmp 0x4d3fe6
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x534], eax
mov eax, str.TimesExecuted
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
jmp 0x4d4000
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d4000
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x16
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4d4049
mov eax, dword [ebp - 0x30]
push eax
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d4072
cmp byte [esi + 0x549], bl
jne 0x4d4069
mov ecx, dword [esi + 0x538]
cmp ecx, dword [ebp - 0x18]
je 0x4d4072
mov dword [esi + 0x538], edi
jmp 0x4d4072
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x538], 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 0x4d4087
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x17
call fcn.004d3570
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
or edi, 0xffffffff
cmp eax, 0x10
mov dword [ebp - 4], edi
jb 0x4d40d1
mov edx, dword [ebp - 0x30]
push edx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d40e1
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x420], eax
jmp 0x4d40f6
lea ecx, [ebp - 0x38]
push ecx
call fcn.00527b55
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [esi + 0x420], 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 0x4d4110
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d4110
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x18
call fcn.004d3570
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], edi
jb 0x4d4155
mov edx, dword [ebp - 0x30]
push edx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d4166
cmp dword [ebp - 0x18], ebx
sete al
mov byte [esi + 0x53d], al
mov ecx, esi
call fcn.004caee0
test al, al
jne 0x4d41c6
mov eax, str.InProgress
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 0x4d4186
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x34]
call fcn.0041af60
push 1
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x19
call fcn.004d26f0
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], edi
jb 0x4d41c6
mov edx, dword [ebp - 0x30]
push edx
call fcn.00527b8e
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]
jmp 0x4d41e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d41e0
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x34]
call fcn.0041af60
lea edi, [esi + 0x440]
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x1a
call fcn.004d34e0
mov byte [ebp - 0x13], al
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4d422c
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x13], bl
je 0x4d4240
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x424]
call fcn.0041ad80
mov eax, str.RegCode
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4d4255
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x70]
call fcn.0041af60
lea edi, [esi + 0x45c]
push edi
lea edx, [ebp - 0x70]
push edx
mov ecx, esi
mov dword [ebp - 4], 0x1b
call fcn.004d34e0
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4d429e
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00527b8e
add esp, 4
mov edx, dword [esi]
push edi
lea eax, [esi + 0x440]
push eax
mov ecx, esi
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
call dword [edx + 0x6c]
mov cl, byte [esi + 0x478]
or cl, al
cmp byte [esi + 0x549], bl
mov byte [esi + 0x478], cl
je 0x4d42d7
mov byte [esi + 0x30e], 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.00528d83
mov esp, ebp
pop ebp
ret