Function at 0x421dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5554a3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5b327c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x1c]
push dword [0x5b3118]
add eax, 0x40
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00405c80
add esp, 0xc
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421e40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00418f00
mov edx, dword [ebp - 0x78]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421e7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4222e4
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call fcn.004fdd30
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00453900
add esp, 0x14
test eax, eax
je 0x42225c
lea ecx, [ebp - 0x94]
call fcn.004fa1c0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x94]
call fcn.004faec0
test al, al
je 0x422251
push 0x566bb8
lea ecx, [ebp - 0x74]
call fcn.00404130
push 5
push str.scene
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00418e10
push 0xfde9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94]
call fcn.004fabf0
mov ecx, dword [edi + 0x54]
push eax
add ecx, 8
mov byte [ebp - 4], 8
call fcn.00405500
mov edx, dword [ebp - 0x78]
mov eax, esi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421f95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00404f30
mov edx, dword [ebp - 0x74]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421fbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x566bb8
lea ecx, [ebp - 0x74]
call fcn.00404130
push 8
push 0x56a014
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00418e10
push 0xfde9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94]
call fcn.004fabf0
mov ecx, dword [edi + 0x54]
push eax
add ecx, 0xc
mov byte [ebp - 4], 0xb
call fcn.00405500
mov edx, dword [ebp - 0x78]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42203b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00404f30
mov edx, dword [ebp - 0x74]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422061
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x566bb8
lea ecx, [ebp - 0x74]
call fcn.00404130
push 8
push 0x56a020
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00418e10
push 0xfde9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94]
call fcn.004fabf0
mov ecx, dword [edi + 0x54]
push eax
add ecx, 0x10
mov byte [ebp - 4], 0xe
call fcn.00405500
mov edx, dword [ebp - 0x78]
mov eax, esi
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4220e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00404f30
mov edx, dword [ebp - 0x74]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422107
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x566bb8
lea ecx, [ebp - 0x74]
call fcn.00404130
push 5
push str.expid
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00418e10
push 0xfde9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94]
call fcn.004fabf0
mov ecx, dword [edi + 0x54]
push eax
add ecx, 0x2c
mov byte [ebp - 4], 0x11
call fcn.00405500
mov edx, dword [ebp - 0x78]
mov eax, esi
mov byte [ebp - 4], 0x10
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422187
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00404f30
mov edx, dword [ebp - 0x74]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4221ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x566bb8
lea ecx, [ebp - 0x74]
call fcn.00404130
push 5
push 0x56a034
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00418e10
push 0xfde9
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004fabf0
mov ecx, dword [edi + 0x54]
push eax
add ecx, 0x14
mov byte [ebp - 4], 0x14
call fcn.00405500
mov edx, dword [ebp - 0x7c]
mov eax, esi
mov byte [ebp - 4], 0x13
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42222d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00404f30
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x422251
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x94]
call fcn.004f7700
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x422290
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422286
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422335
push edx
push ecx
call fcn.0046282d
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x4222d2
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4222c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42233a
push edx
push ecx
call fcn.0046282d
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42231a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422310
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42233f
push edx
push ecx
call fcn.0046282d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004626cb
mov esp, ebp
pop ebp
ret
call fcn.00510d59
call fcn.00510d59
call fcn.00510d59
int3