Function at 0x47cda0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50afdb
mov eax, dword fs:[0]
push eax
sub esp, 0x344
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x350]
mov ecx, 0xd1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x53577c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
call eax
cmp esi, esp
call fcn.00504bf9
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x47ce1b
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [0x50f3d4]
cmp esi, esp
call fcn.00504bf9
test eax, eax
jne 0x47ce22
xor eax, eax
jmp 0x47d3fc
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
push ecx
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x340], esp
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call fcn.0040a740
mov dword [ebp - 0x348], eax
call fcn.004151e0
add esp, 0x28
cmp dword [ebp - 0x3c], 0x28
jge 0x47ce62
xor eax, eax
jmp 0x47d3fc
lea ecx, [ebp - 0x54]
call fcn.00415d60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00415db0
push 0
push 0x28
lea ecx, [ebp - 0x54]
call fcn.00415f40
lea ecx, [ebp - 0x54]
call fcn.00415dd0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00415f90
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x78], 0
call fcn.0046f980
mov ecx, eax
call fcn.0047d500
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
push 0x522680
lea ecx, [ebp - 0xac]
call fcn.004042e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00415fd0
test eax, eax
jne 0x47d3a3
push 0
push 0x11
lea ecx, [ebp - 0x54]
call fcn.00415f40
lea ecx, [ebp - 0x54]
call fcn.00415dd0
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x54]
call fcn.00415dd0
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
xor ecx, ecx
push ecx
push eax
lea edx, [ebp - 0xe8]
push edx
lea ecx, [ebp - 0x54]
call fcn.00415e90
mov byte [ebp - 4], 2
push 0x522680
lea eax, [ebp - 0xe8]
push eax
call fcn.00408c80
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x47cf62
push 0x514528
lea ecx, [ebp - 0xe8]
call fcn.004043a0
lea ecx, [ebp - 0x54]
call fcn.00415dd0
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
xor ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x54]
call fcn.00415de0
mov byte [ebp - 4], 3
push 0x522690
lea eax, [ebp - 0x118]
push eax
call fcn.00412b90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x47cfcb
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404350
jmp 0x47cee2
push 0x514520
push 7
push 0
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040ca70
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x348]
mov dword [ebp - 0x34c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00412bd0
add esp, 8
mov byte [ebp - 0x331], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x328]
call fcn.00403d20
movzx eax, byte [ebp - 0x331]
test eax, eax
je 0x47d04e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404350
jmp 0x47cee2
call fcn.00414570
mov ecx, dword [ebp - 0xb8]
xor esi, esi
sub eax, ecx
sbb edx, esi
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x348], edx
cmp dword [ebp - 0x348], 0
jl 0x47d0a5
jg 0x47d082
cmp dword [ebp - 0x34c], 0x93a80
jbe 0x47d0a5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404350
jmp 0x47cee2
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x348]
cmp edx, dword [ebp - 0x84]
jg 0x47d0fa
jl 0x47d0d7
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x88]
ja 0x47d0fa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404350
jmp 0x47cee2
cmp dword [ebp - 0x6c], 0xbb8
jle 0x47d126
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404350
jmp 0x47d3a3
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x2ec]
push edx
call fcn.004145a0
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x304], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x300], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2fc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x124], eax
push 0x522680
lea ecx, [ebp - 0x154]
call fcn.004042e0
mov byte [ebp - 4], 5
push 0x51451c
lea ecx, [ebp - 0x2d4]
call fcn.004042e0
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x154]
call fcn.004043d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2d4]
call fcn.00404350
lea eax, [ebp - 0x130]
push eax
call fcn.004147e0
add esp, 4
push eax
lea ecx, [ebp - 0x154]
call fcn.004043f0
push 0x514518
lea ecx, [ebp - 0x2b0]
call fcn.004042e0
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x154]
call fcn.004043d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
call fcn.00404350
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28c], esp
lea eax, [ebp - 0x118]
push eax
call fcn.00403cf0
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x280]
push ecx
call fcn.0040c2a0
add esp, 0x20
mov dword [ebp - 0x34c], eax
mov edx, dword [ebp - 0x34c]
mov dword [ebp - 0x350], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x350]
push eax
lea ecx, [ebp - 0x154]
call fcn.004043d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x280]
call fcn.00404350
push 0x514518
lea ecx, [ebp - 0x25c]
call fcn.004042e0
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x154]
call fcn.004043d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x25c]
call fcn.00404350
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x154]
call fcn.004043d0
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0xac]
call fcn.004043d0
cmp dword [ebp - 0x78], 0x1e
jl 0x47d35f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x238], esp
lea eax, [ebp - 0xac]
push eax
call fcn.00404320
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x18]
call fcn.0047ca50
mov dword [ebp - 0x78], 0
push 0x522680
lea ecx, [ebp - 0xac]
call fcn.004043a0
mov eax, dword [ebp - 0x6c]
add eax, 1
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x154]
call fcn.00404350
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00404350
jmp 0x47cee2
cmp dword [ebp - 0x78], 0
jle 0x47d3ce
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x22c], esp
lea eax, [ebp - 0xac]
push eax
call fcn.00404320
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x18]
call fcn.0047ca50
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00404350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00415da0
mov eax, dword [ebp - 0x220]
push edx
mov ecx, ebp
push eax
lea edx, [0x47d438]
call fcn.00504c1c
pop eax
pop edx
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.00453735
add esp, 0x350
cmp ebp, esp
call fcn.00504bf9
mov esp, ebp
pop ebp
ret