Function at 0x40d2c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ffce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [0x569f5c]
push ebx
xor eax, dword [ebp + 4]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x1c], ebx
call fcn.004b1b50
lea edi, [esi + 0x998]
mov ecx, 0x5c
xor eax, eax
push 0x20
rep stosd dword es:[edi], eax
call fcn.004eb990
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x40d327
mov ecx, eax
call fcn.004a3670
mov dword [ebp - 0x44], eax
jmp 0x40d32a
mov dword [ebp - 0x44], ebx
mov eax, str.userdatausers.dat
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d346
sub eax, edi
lea ecx, [ebp - 0x38]
push eax
push str.userdatausers.dat
call fcn.00403230
mov eax, dword [ebp - 0x44]
push ebx
lea ecx, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0044e6e0
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40d392
mov edx, dword [ebp - 0x34]
push edx
call fcn.004fb06d
add esp, 4
cmp byte [ebp - 0x11], bl
je 0x40d521
mov edi, dword [ebp - 0x44]
mov ecx, edi
call fcn.00499440
cmp al, bl
je 0x40d493
cmp al, 0x14
ja 0x40d48c
push ebx
push str.userdatausers.bak
push str.userdatausers.dat
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.userdatausers.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, str.Message
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d3e6
sub eax, edi
lea ecx, [ebp - 0x38]
push eax
push str.Message
call fcn.00403230
mov eax, str.Due_to_some_big_changes_in_the_user_file_format__your_old_user_file_has_been_deleted._Sorry__However__a_backup_of_the_old_file_can_be_found_in_the_userdatausers.bak_file_in_your_Heavy_Weapon_Deluxe_folder.
mov dword [ebp - 4], 2
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d419
sub eax, edi
lea ecx, [ebp - 0x60]
push eax
push str.Due_to_some_big_changes_in_the_user_file_format__your_old_user_file_has_been_deleted._Sorry__However__a_backup_of_the_old_file_can_be_found_in_the_userdatausers.bak_file_in_your_Heavy_Weapon_Deluxe_folder.
call fcn.00403230
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ebx
lea edx, [ebp - 0x60]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call dword [eax + 0x6c]
mov eax, dword [ebp - 0x48]
mov edi, 0x10
cmp eax, edi
jb 0x40d45c
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004fb06d
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], 0xf
cmp eax, edi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 4], 0xffffffff
jb 0x40d521
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
jmp 0x40d521
mov ecx, edi
call fcn.00496d60
mov ecx, edi
mov dword [ebp - 0x18], ebx
call fcn.00496d80
cdq
and edx, 7
add edx, eax
mov eax, 0xaaaaaaab
sar edx, 3
mul edx
shr edx, 6
je 0x40d521
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x178]
push 0x60
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x178]
push eax
call fcn.00499610
lea eax, [ebp - 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d4db
sub eax, edx
mov dword [ebp - 0x40], eax
je 0x40d521
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [esi + 0x1488]
call fcn.00407a00
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x44]
inc edi
mov dword [ebp - 0x18], edi
call fcn.00496d80
cdq
and edx, 7
add edx, eax
mov eax, 0xaaaaaaab
sar edx, 3
mul edx
shr edx, 6
cmp edi, edx
jb 0x40d4b2
mov edi, dword [ebp - 0x44]
mov ecx, edi
call fcn.0049b4b0
mov eax, str.userdatahiscores.dat
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40d540
sub eax, ecx
lea ecx, [ebp - 0x38]
push eax
push str.userdatahiscores.dat
call fcn.00403230
push ebx
lea eax, [ebp - 0x38]
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0044e6e0
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40d589
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
cmp byte [ebp - 0x11], bl
je 0x40d6bc
mov ecx, edi
call fcn.00496d80
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 0x280
jne 0x40d602
mov dword [ebp - 0x18], 0xa
lea edx, [ebp - 0xdc]
push 0x24
push edx
mov ecx, edi
call fcn.00499610
lea eax, [ebp - 0xf8]
push 0x1c
push eax
mov ecx, edi
call fcn.00499610
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [esi + 0x1438]
call fcn.004078e0
lea edx, [ebp - 0xf8]
lea ecx, [esi + 0x1448]
push edx
call fcn.00407970
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x40d5b0
jmp 0x40d77d
push str.userdatahiscore.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, str.Message
mov edi, 0xf
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d623
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.Message
call fcn.00403230
mov eax, str.There_is_now_a_new_high_score_file_format.__Im_deleting_the_old_one_
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 5
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d652
sub eax, edi
lea ecx, [ebp - 0x60]
push eax
push str.There_is_now_a_new_high_score_file_format.__Im_deleting_the_old_one_
call fcn.00403230
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ebx
lea edx, [ebp - 0x60]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 6
call dword [eax + 0x6c]
mov eax, dword [ebp - 0x48]
mov edi, 0x10
cmp eax, edi
jb 0x40d695
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004fb06d
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], 0xf
cmp eax, edi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 4], 0xffffffff
jb 0x40d6bc
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
lea eax, [ebp - 0xf8]
lea edx, [ebp - 0xdc]
sub eax, 0x527708
sub edx, 0x5275c8
mov dword [ebp - 0x3c], 0x527720
mov edi, 0x5275e4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], edx
jmp 0x40d6ea
mov edx, dword [ebp - 0x40]
lea eax, [edi - 0x1c]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40d6ed
mov eax, dword [edi]
mov edx, dword [edi - 4]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc4], edx
mov edx, dword [ebp - 0x18]
add eax, 0xffffffe8
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40d717
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0xdc]
push edx
mov ecx, dword [eax]
mov dword [ebp - 0xe0], ecx
lea ecx, [esi + 0x1438]
call fcn.004078e0
lea eax, [ebp - 0xf8]
lea ecx, [esi + 0x1448]
push eax
call fcn.00407970
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x18]
sub ecx, 0x20
mov eax, 0x1c
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
add edi, 0x20
sub edx, eax
add ecx, eax
cmp edi, 0x527724
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x3c], ecx
jl 0x40d6e7
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x40d78a
mov edx, dword [ecx]
push 1
call dword [edx]
lea eax, [esi + 0x924]
mov dword [ebp - 0x40], str.RubberStampLET42
mov dword [ebp - 0x18], eax
mov edi, 0xf
push 0x50
call fcn.004eb990
add esp, 4
mov dword [ebp - 0x3c], eax
cmp eax, ebx
mov dword [ebp - 4], 7
je 0x40d880
mov eax, str..txt
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d7cc
sub eax, edi
lea ecx, [ebp - 0x38]
push eax
push str..txt
call fcn.00403230
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
or al, 1
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x1c], eax
mov eax, str.Fonts_
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d804
sub eax, edi
lea ecx, [ebp - 0x60]
push eax
push str.Fonts_
call fcn.00403230
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x60]
or ecx, 2
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x40]
push ecx
push edx
push eax
mov dword [ebp - 4], 9
call fcn.00403c10
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0xb8]
or edi, 4
push eax
push edx
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x1c], edi
call fcn.004034c0
add esp, 0x18
mov ecx, dword [ebp - 0x3c]
mov edx, edi
or edx, 8
push eax
push esi
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1c], edx
call fcn.00496160
mov edi, 0xf
jmp 0x40d882
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov al, byte [ebp - 0x1c]
test al, 8
je 0x40d8c3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xa0]
and ecx, 0xfffffff7
cmp eax, 0x10
mov dword [ebp - 0x1c], ecx
jb 0x40d8b1
mov edx, dword [ebp - 0xb4]
push edx
call fcn.004fb06d
add esp, 4
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], ebx
mov byte [ebp - 0xb4], bl
test byte [ebp - 0x1c], 4
je 0x40d8ef
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x64]
and ecx, 0xfffffffb
cmp eax, 0x10
mov dword [ebp - 0x1c], ecx
jb 0x40d8e6
mov eax, dword [ebp - 0x78]
push eax
call fcn.004fb06d
add esp, 4
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
test byte [ebp - 0x1c], 2
je 0x40d91b
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
and ecx, 0xfffffffd
cmp eax, 0x10
mov dword [ebp - 0x1c], ecx
jb 0x40d912
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004fb06d
add esp, 4
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov al, byte [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x40d94f
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
and ecx, 0xfffffffe
cmp eax, 0x10
mov dword [ebp - 0x1c], ecx
jb 0x40d946
mov edx, dword [ebp - 0x34]
push edx
call fcn.004fb06d
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
add eax, 0x1e
cmp eax, 0x5274c0
mov dword [ebp - 0x40], eax
jl 0x40d79f
mov dword [ebp - 0x18], ebx
mov edi, 0x5274c0
mov eax, str.music_
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40d989
sub eax, ecx
lea ecx, [ebp - 0x38]
push eax
push str.music_
call fcn.00403230
lea eax, [ebp - 0x38]
push edi
lea ecx, [ebp - 0x7c]
push eax
push ecx
mov dword [ebp - 4], 0x10
call fcn.00403c10
add esp, 0xc
mov ecx, dword [esi + 0x330]
push eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x11
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [ebp - 0x64], 0x10
jb 0x40d9de
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.004fb06d
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], 0xf
cmp eax, 0x10
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
mov dword [ebp - 4], 0xffffffff
jb 0x40da06
mov edx, dword [ebp - 0x34]
push edx
call fcn.004fb06d
add esp, 4
mov edx, dword [ebp - 0x18]
add edi, 0x2c
inc edx
cmp edi, 0x5275c8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x18], edx
jl 0x40d974
lea eax, [esi + 0x688]
mov edi, 0x52784c
mov dword [ebp - 0x3c], eax
push 0x20
call fcn.004eb990
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], 0x12
je 0x40da59
push esi
mov ecx, eax
call fcn.0042d4e0
jmp 0x40da5b
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov dword [ecx], eax
mov eax, str.images_
mov byte [ebp - 0x34], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40da7c
sub eax, ecx
lea ecx, [ebp - 0x38]
push eax
push str.images_
call fcn.00403230
lea edx, [edi - 0x2c]
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x7c]
push eax
push ecx
mov dword [ebp - 4], 0x13
call fcn.00403c10
add esp, 0xc
mov edx, dword [edi]
mov ecx, dword [edi - 4]
push edx
mov edx, dword [ebp - 0x3c]
push ecx
push eax
mov ecx, dword [edx]
mov byte [ebp - 4], 0x14
call fcn.0042d500
cmp dword [ebp - 0x64], 0x10
jb 0x40dad6
mov eax, dword [ebp - 0x78]
push eax
call fcn.004fb06d
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, 0xf
cmp ecx, 0x10
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
mov dword [ebp - 4], 0xffffffff
jb 0x40db04
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
mov eax, 0xf
mov ecx, dword [ebp - 0x3c]
add edi, 0x34
add ecx, 4
cmp edi, 0x527a88
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x3c], ecx
jl 0x40da37
mov dword [ebp - 0x20], eax
mov eax, str.sounds_
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40db36
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.sounds_
call fcn.00403230
lea edx, [ebp - 0x38]
push 0x529808
lea eax, [ebp - 0x7c]
push edx
push eax
mov dword [ebp - 4], 0x15
call fcn.00403c10
add esp, 0xc
mov ecx, dword [esi + 0x438]
push eax
push ebx
mov byte [ebp - 4], 0x16
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [ebp - 0x64]
mov edi, 0x10
cmp eax, edi
jb 0x40db92
mov eax, dword [ebp - 0x78]
push eax
call fcn.004fb06d
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], 0xf
cmp eax, edi
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
mov dword [ebp - 4], 0xffffffff
jb 0x40dbb9
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
mov eax, dword [0x52981c]
mov ecx, dword [esi + 0x438]
push eax
mov eax, dword [0x529818]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx + 0x14]
lea ecx, [esi + 0x8fc]
xor eax, eax
mov dword [ebp - 0x18], ecx
lea edi, [eax + 1]
lea edx, [ebp - 0x118]
push edi
push 0x52a830
push edx
call fcn.004fb95f
lea eax, [ebp - 0x118]
add esp, 0xc
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dc0a
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00403230
mov edx, dword [esi]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x17
call dword [edx + 0xe8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x40dc58
mov edx, dword [ebp - 0x34]
push edx
call fcn.004fb06d
add esp, 4
mov eax, edi
mov edi, dword [ebp - 0x18]
mov ecx, 0xf
add edi, 4
cmp eax, 8
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x18], edi
jl 0x40dbdc
mov eax, str.LastUser
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dc8b
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.LastUser
call fcn.00403230
lea edi, [esi + 0xb40]
lea eax, [ebp - 0x38]
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], 0x18
call fcn.00454930
test al, al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0x11]
cmp eax, 0x10
jb 0x40dcdc
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
cmp byte [ebp - 0x11], bl
je 0x40dd3d
mov eax, str.LastUser
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dcf6
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.LastUser
call fcn.00403230
lea edx, [ebp - 0x38]
push ebx
push edx
mov ecx, esi
mov dword [ebp - 4], 0x19
call fcn.00453f80
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x40dd3b
mov eax, dword [ebp - 0x34]
push eax
call fcn.004fb06d
add esp, 4
mov dword [edi], ebx
mov eax, 0x52a450
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dd52
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push 0x52a450
call fcn.00403230
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x38]
push ecx
push edx
mov ecx, esi
mov dword [ebp - 4], 0x1a
call fcn.00454930
test al, al
mov eax, dword [ebp - 0x20]
sete byte [ebp - 0x11]
or edi, 0xffffffff
cmp eax, 0x10
mov dword [ebp - 4], edi
jb 0x40dd9f
mov eax, dword [ebp - 0x34]
push eax
call fcn.004fb06d
add esp, 4
cmp byte [ebp - 0x11], bl
je 0x40de0d
mov eax, 0x52a450
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ddb9
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push 0x52a450
call fcn.00403230
lea ecx, [ebp - 0x38]
push 1
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x1b
call fcn.00453f80
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], edi
cmp eax, 0x10
jb 0x40ddfb
mov edx, dword [ebp - 0x34]
push edx
call fcn.004fb06d
add esp, 4
mov dword [esi + 0xb28], ebx
mov dword [esi + 0xb2c], 0x3ff00000
jmp 0x40de1c
fild dword [ebp - 0x80]
fmul qword [0x52a828]
fstp qword [esi + 0xb28]
mov eax, str.AutoUpdate
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40de31
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.AutoUpdate
call fcn.00403230
lea eax, [esi + 0xb3c]
mov ecx, esi
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], 0x1c
call fcn.00454980
test al, al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], edi
sete byte [ebp - 0x11]
cmp eax, 0x10
jb 0x40de7e
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
cmp byte [ebp - 0x11], bl
je 0x40ded9
mov eax, str.AutoUpdate
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40de98
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.AutoUpdate
call fcn.00403230
lea edx, [ebp - 0x38]
push ebx
push edx
mov ecx, esi
mov dword [ebp - 4], 0x1d
call fcn.00453fa0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], edi
cmp eax, 0x10
jb 0x40ded9
mov eax, dword [ebp - 0x34]
push eax
call fcn.004fb06d
add esp, 4
mov ecx, dword [esi + 0x6ac]
mov byte [esi + 0x544], 1
mov byte [esi + 0x534], 1
mov byte [esi + 0x47c], bl
mov edx, dword [ecx + 8]
mov ecx, esi
push edx
push ebx
call fcn.0044bdf0
mov eax, dword [esi + 0x6a8]
mov ecx, dword [eax + 8]
push ecx
push 1
mov ecx, esi
call fcn.0044bdf0
mov edx, dword [esi + 0x6a4]
mov ecx, esi
mov eax, dword [edx + 8]
push eax
push 2
call fcn.0044bdf0
mov ecx, dword [esi + 0x6b0]
mov edx, dword [ecx + 8]
mov ecx, esi
push edx
push 3
call fcn.0044bdf0
mov ecx, esi
call fcn.004094e0
mov ecx, esi
call fcn.0040a8b0
mov ecx, esi
call fcn.0040c1d0
mov eax, str.MaxPlays
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40df62
sub eax, edi
lea ecx, [ebp - 0x38]
push eax
push str.MaxPlays
call fcn.00403230
lea eax, [ebp - 0x38]
push ebx
push eax
mov ecx, esi
mov dword [ebp - 4], 0x1e
call fcn.00451df0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40dfaa
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004fb06d
add esp, 4
mov eax, str.MaxExecutions
mov edi, 0xf
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dfc0
sub eax, edx
lea ecx, [ebp - 0x38]
push eax
push str.MaxExecutions
call fcn.00403230
lea edx, [ebp - 0x38]
push ebx
push edx
mov ecx, esi
mov dword [ebp - 4], 0x1f
call fcn.00451df0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40e008
mov eax, dword [ebp - 0x34]
push eax
call fcn.004fb06d
add esp, 4
mov eax, str.MaxTime
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e022
sub eax, edx
lea ecx, [ebp - 0x9c]
push eax
push str.MaxTime
call fcn.00403230
lea ecx, [ebp - 0x9c]
push 0x3c
push ecx
mov ecx, esi
mov dword [ebp - 4], 0x20
call fcn.00451df0
mov edi, eax
mov eax, dword [ebp - 0x84]
cmp eax, 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40e076
mov edx, dword [ebp - 0x98]
push edx
call fcn.004fb06d
add esp, 4
mov al, byte [esi + 0x674]
mov dword [ebp - 0x84], 0xf
cmp al, bl
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
jne 0x40e0c7
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jle 0x40e0a5
cmp dword [esi + 0x678], eax
jge 0x40e0c0
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jle 0x40e0b4
cmp dword [esi + 0x67c], eax
jg 0x40e0c0
cmp edi, ebx
jle 0x40e0c7
cmp dword [esi + 0x678], edi
jl 0x40e0c7
mov eax, 1
jmp 0x40e0c9
xor eax, eax
mov byte [esi + 0xb32], al
mov al, byte [esi + 0xb3c]
cmp al, bl
je 0x40e0ea
cmp byte [esi + 0x5fd], bl
jne 0x40e0ea
push 1
mov ecx, esi
call fcn.00405130
push 0x88
call fcn.004eb990
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], 0x21
je 0x40e10f
push esi
mov ecx, eax
call fcn.0042ee70
jmp 0x40e111
xor eax, eax
mov ecx, dword [esi + 0x2dc]
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x948], eax
call fcn.00468f00
mov eax, dword [esi + 0x948]
mov ecx, dword [esi + 0x2dc]
push eax
call fcn.00462700
mov esi, dword [esi + 0x948]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xbc]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret