Function at 0x49c670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579320
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], esi
call fcn.0040baa0
push 0
mov ecx, edi
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x61], 1
call fcn.0047b780
push 0
mov ecx, edi
call fcn.0047ba00
or ecx, 0xffffffff
mov dword [ebp - 0x74], 0
lea ebx, [esi + 0xc]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebx + 4]
mov eax, 0x51eb851f
sub ecx, dword [ebx]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x49cb83
xor edi, edi
mov dword [ebp - 0x78], edi
mov edi, edi
mov esi, dword [ebx]
add esi, 0x20
add esi, edi
cmp dword [esi + 0x14], 8
jb 0x49c70f
mov esi, dword [esi]
mov ecx, dword [ebp - 0x70]
push esi
call fcn.0049c2b0
test al, al
jne 0x49cade
mov ecx, dword [ebp - 0x70]
push esi
call fcn.0049c410
test al, al
jne 0x49cade
push esi
mov byte [ebp - 0x59], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c74f
mov ecx, dword [ebp - 0x8c]
push eax
call fcn.004ba550
mov byte [ebp - 0x59], 1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49c858
cmp byte [ebp + 0xc], 0
je 0x49c7f2
mov eax, dword [ebx]
add eax, edi
cmp dword [eax + 0x84], 8
jb 0x49c77a
mov ecx, dword [eax + 0x70]
jmp 0x49c77d
lea ecx, [eax + 0x70]
push 0
push 0x5883b8
push dword [eax + 0x80]
push ecx
call fcn.00406240
add esp, 0x10
test eax, eax
je 0x49c7f2
push esi
lea ecx, [ebp - 0x58]
call fcn.004029a0
mov dword [ebp - 4], 0
mov ecx, dword [ebx]
add ecx, edi
cmp dword [ecx + 0x84], 8
lea eax, [ecx + 0x70]
jb 0x49c7b9
mov eax, dword [eax]
push dword [ecx + 0x8c]
mov esi, dword [ebp - 0x70]
push dword [ecx + 0x88]
push eax
push dword [ecx + 0x68]
lea eax, [ebp - 0x58]
mov ecx, esi
push 0
push 0
push eax
call fcn.00497ca0
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004038c0
jmp 0x49c8da
push esi
lea ecx, [ebp - 0x28]
call fcn.004029a0
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov esi, dword [ebp - 0x70]
mov ecx, esi
push 0
push 0
push 0
push dword [eax + edi + 0x68]
lea eax, [ebp - 0x28]
push 0
push 0
push eax
call fcn.00497ca0
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x49c83f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x49c8da
cmp byte [ebp + 0xc], 0
je 0x49c8d0
mov eax, dword [ebx]
add eax, 0x70
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x49c86d
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49c8d0
push esi
lea ecx, [ebp - 0x40]
call fcn.004029a0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
add ecx, edi
cmp dword [ecx + 0x84], 8
lea eax, [ecx + 0x70]
jb 0x49c89a
mov eax, dword [eax]
push dword [ecx + 0x8c]
mov esi, dword [ebp - 0x70]
push dword [ecx + 0x88]
push eax
push dword [ecx + 0x68]
lea eax, [ebp - 0x40]
mov ecx, esi
push 0
push 0
push eax
call fcn.00497ca0
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004038c0
jmp 0x49c8da
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x60], 0
cmp byte [ebp - 0x59], 0
je 0x49c8ed
mov ecx, dword [ebp - 0x8c]
push 1
call fcn.004ba550
cmp dword [ebp - 0x60], 0
je 0x49cac5
push 0
mov ecx, esi
call fcn.0047b780
mov eax, dword [ebx]
add eax, 0x38
add eax, edi
mov dword [ebp - 0x6c], eax
cmp dword [eax + 0x14], 8
jb 0x49c915
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
push eax
mov ecx, esi
call fcn.004710b0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 0
test eax, eax
je 0x49c94d
cmp eax, 0xb464
je 0x49c94d
push eax
mov ecx, esi
call fcn.00476620
mov dword [ebp - 0x80], eax
cmp eax, 0x55
jne 0x49c94d
mov eax, dword [ebp - 0x7c]
add eax, 0xffff4c00
mov dword [ebp - 0x80], eax
call fcn.00439ba0
mov edx, dword [ebx]
add edx, 0x5c
add edx, edi
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 2
test eax, eax
je 0x49c988
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [esi + 0x498]
jne 0x49c97b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x88], eax
jmp 0x49c988
lea eax, [esi + 0x478]
push eax
push edx
call fcn.0041ce50
mov ecx, dword [ebp - 0x60]
lea eax, [esi + 0x478]
push eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx]
add eax, edi
push eax
call fcn.0041d0a0
mov esi, dword [ebx]
mov ecx, 0xe
push dword [ebp - 0x6c]
add esi, 0x90
push dword [ebp - 0x80]
add esi, edi
mov edi, dword [ebp - 0x60]
add edi, 0xc0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x60]
mov ecx, esi
call fcn.0041cfa0
mov eax, dword [ebx]
mov edi, dword [ebp - 0x78]
mov eax, dword [edi + eax + 0x68]
cmp eax, 0xffffffff
je 0x49c9df
push eax
mov ecx, esi
call fcn.0041cbc0
mov eax, dword [ebx]
mov ecx, esi
push 0x10
mov al, byte [edi + eax + 0x6c]
mov byte [esi + 0x3c], al
call fcn.0041af40
cmp byte [ebp + 0xc], 0
je 0x49ca4b
mov eax, dword [ebx]
add eax, edi
mov dword [ebp - 0x6c], eax
cmp dword [eax + 0x84], 8
jb 0x49ca0c
mov ecx, dword [eax + 0x70]
jmp 0x49ca0f
lea ecx, [eax + 0x70]
push 0
push 0x5883b8
push dword [eax + 0x80]
push ecx
call fcn.00406240
add esp, 0x10
test eax, eax
je 0x49ca4b
mov eax, dword [ebp - 0x6c]
add eax, 0x70
cmp dword [eax + 0x14], 8
jb 0x49ca37
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ca4b
push 1
mov ecx, esi
call fcn.0041cba0
mov ecx, dword [ebp - 0x7c]
push 0
push 0
push 0x935
call fcn.0040d9f0
push dword [esi + 0x10]
mov ecx, dword [ebp - 0x7c]
push 0
push 0x936
mov dword [ebp - 0x78], eax
call fcn.0040d9f0
mov ecx, dword [ebx]
xor esi, esi
mov eax, dword [edi + ecx + 0x54]
sub eax, dword [edi + ecx + 0x50]
sar eax, 2
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x49caa5
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x7c]
push 0x18
mov eax, dword [edi + eax + 0x50]
push dword [eax + esi*4]
push 0x7fb
call fcn.0040d9f0
inc esi
cmp esi, dword [ebp - 0x6c]
jb 0x49ca87
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
push 0
push 0x936
call fcn.0040d9f0
inc dword [ebp - 0x74]
add edi, 0xc8
mov dword [ebp - 0x78], edi
jmp 0x49cb2c
mov eax, dword [ebx]
mov ecx, ebx
add eax, edi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00498d10
mov byte [ebp - 0x61], 0
jmp 0x49cb2c
mov eax, dword [ebx]
add eax, edi
mov byte [ebp - 0x84], 0
push dword [ebp - 0x84]
push eax
push dword [ebx + 4]
lea ecx, [eax + 0xc8]
push ecx
call fcn.00496b70
mov eax, dword [ebx + 4]
add esp, 0x10
lea esi, [eax - 0xc8]
cmp esi, eax
je 0x49cb25
mov edi, eax
mov ecx, esi
call fcn.00467220
add esi, 0xc8
cmp esi, edi
jne 0x49cb11
mov edi, dword [ebp - 0x78]
add dword [ebx + 4], 0xffffff38
mov ecx, dword [ebx + 4]
mov eax, 0x51eb851f
sub ecx, dword [ebx]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x74], eax
jb 0x49c700
mov ecx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x70]
cmp ecx, 0xffffffff
je 0x49cb80
imul ecx, ecx, 0xc8
mov byte [edi + 0x689b5], 1
mov eax, dword [ebx]
add ecx, 0x5c
add eax, ecx
lea ecx, [edi + 0x478]
push eax
call fcn.004dec90
mov byte [edi + 0x689b5], 0
mov esi, dword [ebp - 0x68]
push 1
mov ecx, edi
call fcn.0047b780
push 1
mov ecx, edi
call fcn.0047ba00
mov ecx, dword [esi + 0x1c]
or eax, 0xffffffff
sub ecx, dword [esi + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, 0x51eb851f
imul ecx
mov dword [ebp - 0x74], 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x49d1ae
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov eax, dword [esi + 0x18]
lea esi, [ebx + 0x20]
add esi, eax
cmp dword [esi + 0x14], 8
jb 0x49cbd4
mov esi, dword [esi]
push esi
mov ecx, edi
call fcn.0049c2b0
test al, al
jne 0x49d107
push esi
mov ecx, edi
call fcn.0049c410
test al, al
jne 0x49d107
push esi
mov byte [ebp - 0x59], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49cc12
mov ecx, dword [ebp - 0x8c]
push eax
call fcn.004ba550
mov byte [ebp - 0x59], 1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cdb7
cmp byte [ebp + 0xc], 0
je 0x49ccf0
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x18]
xor ecx, ecx
cmp ecx, dword [eax + ebx + 0x80]
sbb eax, eax
neg eax
je 0x49ccf0
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x40], ax
cmp word [esi], ax
je 0x49cc73
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cc64
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00406c80
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x18]
add ecx, ebx
cmp dword [ecx + 0x84], 8
lea eax, [ecx + 0x70]
jb 0x49cc9a
mov eax, dword [eax]
push dword [ecx + 0x8c]
push dword [ecx + 0x88]
push eax
push dword [ecx + 0x68]
lea eax, [ebp - 0x40]
mov ecx, edi
push 0
push 0
push eax
call fcn.00497ca0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x49ccd7
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x49cd91
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [esi], ax
jne 0x49cd1b
xor ecx, ecx
jmp 0x49cd2f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cd20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00406c80
mov dword [ebp - 4], 4
mov ecx, edi
mov eax, dword [ebp - 0x68]
push 0
push 0
push 0
mov eax, dword [eax + 0x18]
push dword [eax + ebx + 0x68]
lea eax, [ebp - 0x58]
push 0
push 0
push eax
call fcn.00497ca0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x49cd7d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push ebx
lea ecx, [edi + 0x310]
call fcn.00439b40
cmp eax, 0xffffffff
je 0x49ce9e
push 0
push 1
push ebx
mov ecx, edi
call fcn.00475c60
jmp 0x49ce9e
cmp byte [ebp + 0xc], 0
je 0x49ce9c
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x18]
add eax, 0x70
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x49cdd4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ce9c
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x49ce0e
xor ecx, ecx
jmp 0x49ce22
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ce13
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00406c80
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x68]
mov ecx, dword [esi + 0x18]
add ecx, ebx
cmp dword [ecx + 0x84], 8
lea eax, [ecx + 0x70]
jb 0x49ce49
mov eax, dword [eax]
push dword [ecx + 0x8c]
push dword [ecx + 0x88]
push eax
push dword [ecx + 0x68]
lea eax, [ebp - 0x28]
mov ecx, edi
push 0
push 0
push eax
call fcn.00497ca0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x49ce86
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x49cea1
xor ebx, ebx
mov esi, dword [ebp - 0x68]
cmp byte [ebp - 0x59], 0
je 0x49ceb4
mov ecx, dword [ebp - 0x8c]
push 1
call fcn.004ba550
test ebx, ebx
je 0x49d0c1
push 1
mov ecx, edi
call fcn.0047b780
push 0
mov ecx, edi
call fcn.0046ab60
test al, al
je 0x49cedb
push 0
mov ecx, edi
call fcn.004726c0
mov eax, dword [esi + 0x18]
mov esi, dword [ebp - 0x60]
add eax, 0x38
add eax, esi
mov dword [ebp - 0x80], eax
cmp dword [eax + 0x14], 8
jb 0x49cef4
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
push eax
mov ecx, edi
call fcn.004710b0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x78], 0
test eax, eax
je 0x49cf30
push eax
mov ecx, edi
call fcn.00476620
mov esi, eax
mov dword [ebp - 0x78], esi
cmp esi, 0x55
mov esi, dword [ebp - 0x60]
jne 0x49cf30
mov eax, dword [ebp - 0x84]
add eax, 0xffff4c00
mov dword [ebp - 0x78], eax
call fcn.00439ba0
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x18]
add ecx, 0x5c
add ecx, esi
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
test eax, eax
je 0x49cf6b
cmp ebx, dword [edi + 0x440]
jne 0x49cf5c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
jmp 0x49cf6b
lea eax, [edi + 0x420]
push eax
push ecx
mov ecx, ebx
call fcn.0041ce50
lea eax, [edi + 0x420]
mov ecx, ebx
mov edi, dword [ebp - 0x68]
push eax
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x18]
add eax, esi
push eax
call fcn.0041d0a0
mov eax, dword [edi + 0x18]
mov ecx, 0xe
add eax, 0x90
lea edi, [ebx + 0xc0]
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x80]
cmp edi, 0xf
jne 0x49cfbf
push 0x5b1cf8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x49cfbf
mov esi, 0x5883b8
push esi
push edi
mov ecx, ebx
call fcn.0041cfa0
mov edi, dword [ebp - 0x68]
mov ecx, ebx
mov esi, dword [ebp - 0x60]
mov eax, dword [edi + 0x18]
push dword [eax + esi + 0x68]
call fcn.0041cbc0
mov eax, dword [edi + 0x18]
mov ecx, ebx
push 0x10
mov al, byte [eax + esi + 0x6c]
mov byte [ebx + 0x3c], al
call fcn.0041af40
cmp byte [ebp + 0xc], 0
je 0x49d01f
mov eax, dword [edi + 0x18]
add eax, 0x70
add eax, esi
cmp dword [eax + 0x10], 0
jbe 0x49d01f
cmp dword [eax + 0x14], 8
jb 0x49d00b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d01f
push 1
mov ecx, ebx
call fcn.0041cba0
mov ecx, dword [ebp - 0x88]
push 0
push 0
push 0x935
call fcn.0040d9f0
push dword [ebx + 0x10]
mov ebx, dword [ebp - 0x88]
mov ecx, ebx
push 0
push 0x936
mov dword [ebp - 0x84], eax
call fcn.0040d9f0
mov edx, dword [ebp - 0x60]
mov eax, edi
xor esi, esi
mov ecx, dword [eax + 0x18]
mov edi, dword [ecx + edx + 0x54]
sub edi, dword [ecx + edx + 0x50]
sar edi, 2
test edi, edi
je 0x49d093
lea esp, [esp]
mov eax, dword [eax + 0x18]
mov ecx, ebx
push 0x18
mov eax, dword [eax + edx + 0x50]
push dword [eax + esi*4]
push 0x7fb
call fcn.0040d9f0
mov edx, dword [ebp - 0x60]
inc esi
mov eax, dword [ebp - 0x68]
cmp esi, edi
jb 0x49d070
push dword [ebp - 0x84]
mov ecx, ebx
push 0
push 0x936
call fcn.0040d9f0
mov ebx, dword [ebp - 0x60]
inc dword [ebp - 0x74]
add ebx, 0xc8
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x60], ebx
jmp 0x49d15e
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 0x60]
mov byte [ebp - 0x7c], 0
push dword [ebp - 0x7c]
push eax
push dword [esi + 0x1c]
add eax, 0xc8
push eax
call fcn.00496b70
mov ebx, dword [esi + 0x1c]
add esp, 0x10
lea esi, [ebx - 0xc8]
cmp esi, ebx
je 0x49d101
lea ecx, [ecx]
mov ecx, esi
call fcn.00467220
add esi, 0xc8
cmp esi, ebx
jne 0x49d0f0
mov byte [ebp - 0x61], 0
jmp 0x49d151
mov esi, dword [ebp - 0x68]
mov byte [ebp - 0x90], 0
push dword [ebp - 0x90]
mov eax, dword [esi + 0x18]
add eax, ebx
push eax
push dword [esi + 0x1c]
add eax, 0xc8
push eax
call fcn.00496b70
mov ebx, dword [esi + 0x1c]
add esp, 0x10
lea esi, [ebx - 0xc8]
cmp esi, ebx
je 0x49d151
jmp 0x49d140
mov ecx, esi
call fcn.00467220
add esi, 0xc8
cmp esi, ebx
jne 0x49d140
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x60]
add dword [esi + 0x1c], 0xffffff38
mov ecx, dword [esi + 0x1c]
mov eax, 0x51eb851f
sub ecx, dword [esi + 0x18]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x74], eax
jb 0x49cbc4
mov eax, dword [ebp - 0x6c]
cmp eax, 0xffffffff
je 0x49d1ae
imul ecx, eax, 0xc8
mov byte [edi + 0x689b5], 1
mov eax, dword [esi + 0x18]
add ecx, 0x5c
add eax, ecx
lea ecx, [edi + 0x420]
push eax
call fcn.004dec90
mov byte [edi + 0x689b5], 0
lea ecx, [edi + 0x478]
call fcn.004da6b0
lea ecx, [edi + 0x420]
call fcn.004da6b0
mov eax, dword [esi + 4]
cmp eax, dword [edi + 0x320]
jae 0x49d1e5
push 0
push eax
lea ecx, [edi + 0x310]
call fcn.00439b00
push eax
mov ecx, edi
call fcn.00468f20
mov eax, dword [esi + 8]
cmp eax, dword [edi + 0x3a4]
jae 0x49d206
push 1
push eax
lea ecx, [edi + 0x394]
call fcn.00439b00
push eax
mov ecx, edi
call fcn.00468f20
mov ecx, dword [esi + 0x1c]
mov eax, 0x51eb851f
sub ecx, dword [esi + 0x18]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x49d22d
mov eax, dword [esi]
test eax, eax
je 0x49d22a
cmp eax, 1
jne 0x49d22d
push eax
jmp 0x49d22f
push 0
mov ecx, edi
call fcn.0047ba00
xor eax, eax
mov ecx, edi
cmp dword [edi + 0x68ff8], eax
sete al
push eax
call fcn.0046ab60
mov ecx, edi
test al, al
je 0x49d25d
xor eax, eax
cmp dword [edi + 0x68ff8], eax
sete al
push eax
jmp 0x49d274
push dword [edi + 0x68ff8]
call fcn.0046ab60
test al, al
je 0x49d279
push dword [edi + 0x68ff8]
mov ecx, edi
call fcn.004726c0
mov esi, dword [edi + 0x68fd8]
test esi, esi
je 0x49d292
lea ecx, [esi + 0x6c]
call fcn.005034b0
mov ecx, esi
call fcn.005023a0
mov al, byte [ebp - 0x61]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 8