Function at 0x472d40
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [0x5766e8]
xor ebx, ebx
cmp dword [ebp + 0xa4], ebx
push esi
push edi
jne 0x473029
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xa4], 1
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
call edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
call fcn.00484fe0
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov esi, dword [ebp + 0x24]
call fcn.004955b0
mov edi, dword [ebp + 0x28]
push 1
mov dword [edi + 0x14], ebx
call fcn.00486f70
mov eax, dword [ebp + 0x2c]
call fcn.0048e830
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
call fcn.00495940
mov esi, dword [ebp + 0x38]
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], ebx
lea edi, [esi + 0x18]
jne 0x472dec
push ebx
call dword [0x5313c0]
test eax, eax
je 0x472dec
xor edx, edx
call fcn.00402760
mov edi, dword [edi]
cmp dword [edi - 0xc], ebx
je 0x472dec
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x472dec
mov ebx, edi
call fcn.004a0d30
xor ebx, ebx
mov esi, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x10]
mov eax, esi
call fcn.004970a0
mov dword [esi + 0x14], edi
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x88]
cmp eax, ebx
mov dword [ebp + 0x80], 2
je 0x472e28
push eax
call fcn.00500319
add esp, 4
mov dword [ebp + 0x88], ebx
mov eax, dword [ebp + 0x8c]
cmp eax, ebx
je 0x472e41
push eax
call fcn.00500319
add esp, 4
mov dword [ebp + 0x8c], ebx
lea esi, [ebp + 0x198]
mov eax, esi
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0x84], ebx
call fcn.00488e80
test eax, eax
jle 0x472f17
mov edi, edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x472e83
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x472e88
call fcn.00500ad0
mov ecx, dword [esi + 4]
cmp dword [ecx + ebx*4], 0
je 0x472f05
test ecx, ecx
je 0x472ea1
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x472ea6
call fcn.00500ad0
mov eax, dword [esi + 4]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x472ee3
mov eax, dword [edi + 8]
test eax, eax
je 0x472ec5
push eax
call dword [0x5310c4]
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x472eda
push eax
call dword [0x5310c4]
mov dword [edi + 0xc], 0
push edi
call fcn.004ffbbe
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x472ef6
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x472efb
call fcn.00500ad0
mov ecx, dword [esi + 4]
mov dword [ecx + ebx*4], 0
mov eax, esi
add ebx, 1
call fcn.00488e80
cmp ebx, eax
jl 0x472e70
mov eax, esi
call fcn.0046bc10
lea esi, [ebp + 0x184]
xor ebx, ebx
mov eax, esi
mov dword [ebp + 0x194], ebx
call fcn.00488e80
test eax, eax
jle 0x472fe7
jmp 0x472f40
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x472f53
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x472f58
call fcn.00500ad0
mov ecx, dword [esi + 4]
cmp dword [ecx + ebx*4], 0
je 0x472fd5
test ecx, ecx
je 0x472f71
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x472f76
call fcn.00500ad0
mov edx, dword [esi + 4]
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x472fb3
mov eax, dword [edi + 8]
test eax, eax
je 0x472f95
push eax
call dword [0x5310c4]
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x472faa
push eax
call dword [0x5310c4]
mov dword [edi + 0xc], 0
push edi
call fcn.004ffbbe
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x472fc6
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x472fcb
call fcn.00500ad0
mov eax, dword [esi + 4]
mov dword [eax + ebx*4], 0
mov eax, esi
add ebx, 1
call fcn.00488e80
cmp ebx, eax
jl 0x472f40
mov eax, esi
call fcn.0046bc10
fldz
fst qword [ebp + 0x1a8]
xor eax, eax
fst qword [ebp + 0x1b0]
lea ecx, [ebp + 0x2d0]
fstp qword [ebp + 0x1b8]
push ecx
mov dword [ebp + 0xa8], eax
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xb0], eax
push ebp
mov dword [ebp + 0xb8], eax
call fcn.00474ea0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret