Function at 0x49d160
Capabilities:
Check if file exists
Get file attributes
Get file size
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x614
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
jne 0x49d198
mov eax, 0x4d68e8
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x3c], esi
jne 0x49d1dc
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x49d1b4
mov eax, 0x4d68e8
push eax
push str.GetFileVersionInfoSize:__s
push 0x503ff0
call fcn.004234a0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call fcn.004bf598
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x49d212
mov ecx, dword [ebp - 0x18]
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
je 0x49dc49
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x49d238
mov eax, 0x4d68e8
push ecx
push esi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x49d264
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x49d251
mov eax, 0x4d68e8
push eax
push str.GetFileVersionInfo:__s
push 0x503ff0
call fcn.004234a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0x4f0ba8
push eax
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x14]
mov eax, ecx
lea edi, [edx + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x49d2a0
mov eax, 0x4d68e8
lea ecx, [ebp - 0x210]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d2db
mov eax, dword [ebx + 4]
test eax, eax
jne 0x49d2c3
mov eax, 0x4d68e8
push eax
push str.OpenFile:__s
push 0x503ff0
call fcn.004234a0
mov edi, dword [ebp - 0x38]
add esp, 0xc
jmp 0x49d34d
mov edi, dword [ebp - 0x38]
lea edx, [edi + 0x14]
lea eax, [edi + 0xc]
push edx
lea ecx, [edi + 4]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x49d314
mov eax, dword [ebx + 4]
test eax, eax
jne 0x49d301
mov eax, 0x4d68e8
push eax
push str.GetFileTime:__s
push 0x503ff0
call fcn.004234a0
add esp, 0xc
lea edx, [edi + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0x20], eax
jne 0x49d346
mov eax, dword [ebx + 4]
test eax, eax
jne 0x49d333
mov eax, 0x4d68e8
push eax
push str.GetFileSize:__s
push 0x503ff0
call fcn.004234a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
jne 0x49d35b
mov eax, 0x4d68e8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x49d388
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x49d375
mov eax, 0x4d68e8
push eax
push str.GetFileAttributes:__s
push 0x503ff0
call fcn.004234a0
add esp, 0xc
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x6c], al
call fcn.00406ad6
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov eax, dword [0x5041d4]
mov dword [ebp - 4], 2
cmp eax, esi
jne 0x49d3e6
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.m_hInstance___0
lea ecx, [ebp - 0x610]
push str.ASSERT__s_
push ecx
call esi
add esp, 0xc
lea edx, [ebp - 0x610]
mov ecx, 0x503ff0
push edx
push 0x558
push str..isoutils.h
call fcn.00423080
jmp 0x49d3ec
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x5041d4]
lea eax, [ebp - 0x188]
push 0x104
push eax
push 0xfa0
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x49d430
lea edi, [ebp - 0x188]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x188]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.0040695a
jmp 0x49d450
push str..FileInfo.cpp
push 0x10e
push str.TransCode.LoadString_IDS_TRANSCODE_1_
lea eax, [ebp - 0x620]
push str.__s____d__in___s_
push eax
call esi
add esp, 0x14
mov cl, byte [ebp + 0xb]
xor ebx, ebx
mov byte [ebp - 0x54], cl
push ebx
lea ecx, [ebp - 0x54]
call fcn.00406ad6
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x49d477
mov eax, 0x4d68e8
push eax
lea edx, [ebp - 0x54]
push 0xfa2
push edx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49d495
mov eax, 0x4d68e8
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x14]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x49d794
cmp dword [0x5041d4], ebx
jne 0x49d4e8
push str.m_hInstance___0
lea ecx, [ebp - 0x610]
push str.ASSERT__s_
push ecx
call esi
add esp, 0xc
lea edx, [ebp - 0x610]
mov ecx, 0x503ff0
push edx
push 0x558
push str..isoutils.h
call fcn.00423080
mov ecx, dword [0x5041d4]
lea eax, [ebp - 0x188]
push 0x104
push eax
push 0xfa1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
cmp eax, ebx
je 0x49d52c
lea edi, [ebp - 0x188]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x188]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.0040695a
jmp 0x49d54c
push str..FileInfo.cpp
push 0x116
push str.TransCode.LoadString_IDS_TRANSCODE_2_
lea eax, [ebp - 0x620]
push str.__s____d__in___s_
push eax
call esi
add esp, 0x14
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x49d558
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa2
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49d576
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x49d794
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x84], al
call fcn.00406ad6
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
lea ecx, [ebp - 0x84]
push 0x1cd7
push ecx
mov byte [ebp - 4], 4
call fcn.0041c3cf
mov eax, dword [ebp - 0x80]
add esp, 8
cmp eax, ebx
jne 0x49d5cf
mov eax, 0x4d68e8
lea edx, [ebp - 0x3c]
lea ecx, [ebp + 8]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x49d679
push str.CFileInfo::SetFileName___Error_Get_Version_Translation_info
push 0x503ff0
call fcn.004234a0
mov eax, dword [ebp - 0x74]
add esp, 8
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x49d612
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x74], ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00406ad6
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x49d636
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x44], ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00406ad6
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x49d65a
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x5c], ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00406ad6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x3c]
xor esi, esi
test eax, 0xfffffffc
jbe 0x49d770
mov edi, dword [ebp - 0x18]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov byte [ebp - 4], 5
mov cx, word [eax + esi*4 + 2]
mov dx, word [eax + esi*4]
push ecx
push edx
lea eax, [ebp - 0x30]
push 0x1cd8
push eax
call fcn.0041c3cf
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp eax, ebx
jne 0x49d6d4
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa2
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49d6f2
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
push ecx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x49d740
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push edx
xor ecx, ecx
mov cx, word [eax + esi*4 + 2]
xor edx, edx
mov dx, word [eax + esi*4]
push ecx
push edx
push str._Lang_Code___04x_04x__FileDescription
push 0x503ff0
call fcn.00423100
mov eax, dword [0x4d68ec]
add esp, 0x14
lea ecx, [ebp - 0x30]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x49d757
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00406ad6
mov edx, dword [ebp - 0x3c]
inc esi
shr edx, 2
cmp esi, edx
jb 0x49d68c
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x49d787
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x74], ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00406ad6
mov al, byte [ebp + 0xb]
mov esi, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 6
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040695a
mov edx, dword [0x4d68ec]
mov ecx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push ebx
add ecx, 0xd0
push eax
mov byte [ebp - 4], 7
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x49d7fb
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00406ad6
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x49d811
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa7
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49d82f
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
mov al, byte [ebp + 0xb]
mov esi, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040695a
mov edx, dword [0x4d68ec]
mov ecx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push ebx
add ecx, 0xb8
push eax
mov byte [ebp - 4], 9
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x49d8a8
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00406ad6
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x49d8be
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa5
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49d8dc
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
mov al, byte [ebp + 0xb]
mov esi, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xa
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040695a
mov edx, dword [0x4d68ec]
mov ecx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push ebx
add ecx, 0xa0
push eax
mov byte [ebp - 4], 0xb
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x49d955
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00406ad6
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x49d96b
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa6
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49d989
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
mov al, byte [ebp + 0xb]
mov esi, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.0040695a
mov edx, dword [0x4d68ec]
mov ecx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push ebx
add ecx, 0x58
push eax
mov byte [ebp - 4], 0xd
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x49d9ff
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00406ad6
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x49da15
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa4
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
jne 0x49da33
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
mov al, byte [ebp + 0xb]
mov esi, dword [ebp - 0x14]
xor edi, edi
lea ecx, [ebp - 0x30]
push edi
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 0xe
mov ebx, ecx
lea ecx, [ebp - 0x30]
push ebx
call fcn.00406a51
test al, al
je 0x49da9c
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x30]
call fcn.0042bb00
mov eax, dword [ebp - 0x38]
mov edx, dword [0x4d68ec]
push edx
push 0
lea ecx, [eax + 0x70]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
test eax, eax
je 0x49dad3
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00406ad6
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x49dae9
mov eax, 0x4d68e8
push eax
lea ecx, [ebp - 0x54]
push 0xfa3
push ecx
call fcn.0041c3cf
mov eax, dword [ebp - 0x50]
add esp, 0xc
test eax, eax
jne 0x49db07
mov eax, 0x4d68e8
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
call sub.VERSION.dll_VerQueryValueA
mov al, byte [ebp + 0xb]
mov esi, dword [ebp - 0x14]
xor edi, edi
lea ecx, [ebp - 0x30]
push edi
mov byte [ebp - 0x30], al
call fcn.00406ad6
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 0x10
mov ebx, ecx
lea ecx, [ebp - 0x30]
push ebx
call fcn.00406a51
test al, al
je 0x49db71
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
mov byte [eax + ebx], 0
mov ecx, dword [0x4d68ec]
mov eax, dword [ebp - 0x38]
xor esi, esi
push ecx
lea edx, [ebp - 0x30]
push esi
push edx
lea ecx, [eax + 0x88]
mov byte [ebp - 4], 0x11
call fcn.0040b3b2
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x49dba4
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x49dbc8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49dbbf
cmp al, 0xff
je 0x49dbbf
dec al
mov byte [ecx], al
jmp 0x49dbc8
push ecx
call fcn.004be17b
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004be17b
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, esi
je 0x49dbe7
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 0x50]
cmp ecx, esi
je 0x49dc0a
mov al, byte [ecx - 1]
test al, al
je 0x49dc00
cmp al, 0xff
je 0x49dc00
dec al
mov byte [ecx - 1], al
jmp 0x49dc0a
dec ecx
push ecx
call fcn.004be17b
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x50], esi
cmp eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
je 0x49dc26
push eax
call fcn.004be17b
add esp, 4
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x68]
cmp ecx, esi
je 0x49dc49
mov al, byte [ecx - 1]
test al, al
je 0x49dc3f
cmp al, 0xff
je 0x49dc3f
dec al
mov byte [ecx - 1], al
jmp 0x49dc49
dec ecx
push ecx
call fcn.004be17b
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4