Function at 0x42ed20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c03fd
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x4ec], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44c]
call fcn.00439a80
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x84
call fcn.00439a80
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x108
call fcn.00439a80
lea ecx, [ebp - 0x364]
call fcn.004397c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2e0]
call fcn.004397c0
mov byte [ebp - 4], 1
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x45c], 0
jmp 0x42edda
mov eax, dword [ebp - 0x45c]
add eax, 1
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 2
jge 0x42f51a
cmp dword [ebp - 0x45c], 1
jne 0x42edf6
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 0
jne 0x42edfe
jmp 0x42edcb
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
je 0x42f515
lea ecx, [ebp - 0x364]
call fcn.0043a0d0
lea ecx, [ebp - 0x2e0]
call fcn.0043a0d0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jle 0x42ee46
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x20
jg 0x42ee46
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp + 8], eax
jmp 0x42ee22
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x42eeae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3d
je 0x42eeae
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x20
jle 0x42eeae
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x4c8]
jae 0x42eeac
mov edx, dword [ebp + 8]
mov ax, word [edx]
mov word [ebp - 0x45e], ax
movzx ecx, word [ebp - 0x45e]
push ecx
lea ecx, [ebp - 0x364]
call fcn.00439de0
mov edx, dword [ebp + 8]
add edx, 2
mov dword [ebp + 8], edx
jmp 0x42ee76
jmp 0x42ee46
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jle 0x42eed2
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x20
jg 0x42eed2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp + 8], eax
jmp 0x42eeae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x4c4], 0x3d
je 0x42eef5
jmp 0x42f515
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jle 0x42ef19
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x20
jg 0x42ef19
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp + 8], eax
jmp 0x42eef5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
mov dword [ebp - 0x4c0], edx
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
cmp dword [ebp - 0x4c0], 0x27
je 0x42ef3c
jmp 0x42f515
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
je 0x42ef99
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x27
je 0x42ef99
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x4b4]
jae 0x42ef97
mov ecx, dword [ebp + 8]
mov dx, word [ecx]
mov word [ebp - 0x460], dx
movzx eax, word [ebp - 0x460]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00439de0
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
jmp 0x42ef61
jmp 0x42ef3c
mov edx, dword [ebp + 8]
movzx eax, word [edx]
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x4cc], 0x27
je 0x42efbc
jmp 0x42f515
lea ecx, [ebp - 0x2e0]
call fcn.0043a900
movzx edx, al
test edx, edx
jne 0x42f4f0
push 0x4c7b98
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx eax, al
test eax, eax
jne 0x42f000
push 0x4c7ba4
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx ecx, al
test ecx, ecx
je 0x42f01d
lea edx, [ebp - 0x2e0]
push edx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x108
call fcn.00439a50
jmp 0x42f4f0
push str.restype
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx eax, al
test eax, eax
je 0x42f051
lea ecx, [ebp - 0x2e0]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x18c
call fcn.00439a50
jmp 0x42f4f0
push str.dest
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx edx, al
test edx, edx
je 0x42f12b
push 0xa
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004ae366
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x210], eax
push 0xa
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x450]
add eax, 2
push eax
call fcn.004ae366
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x214], eax
push 0xa
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x450]
add eax, 2
push eax
call fcn.004ae366
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x218], eax
push 0xa
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x450]
add eax, 2
push eax
call fcn.004ae366
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x21c], eax
mov edx, dword [ebp - 0x44c]
add edx, 0x210
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00429870
mov ecx, eax
call fcn.00426980
jmp 0x42f4f0
push str.source
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx eax, al
test eax, eax
je 0x42f1e9
push 0xa
lea ecx, [ebp - 0x450]
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x220], eax
push 0xa
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
push ecx
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x224], eax
push 0xa
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
push ecx
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x228], eax
push 0xa
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
push ecx
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x22c], eax
jmp 0x42f4f0
push str.corner
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx eax, al
test eax, eax
je 0x42f2a7
push 0xa
lea ecx, [ebp - 0x450]
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x230], eax
push 0xa
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
push ecx
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x234], eax
push 0xa
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
push ecx
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x238], eax
push 0xa
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x450]
add ecx, 2
push ecx
call fcn.004ae366
add esp, 0xc
mov edx, dword [ebp - 0x44c]
mov dword [edx + 0x23c], eax
jmp 0x42f4f0
push str.mask
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx eax, al
test eax, eax
je 0x42f32f
push 0
lea ecx, [ebp - 0x2e0]
call fcn.00439b30
movzx ecx, ax
cmp ecx, 0x23
jne 0x42f301
push 0x10
lea edx, [ebp - 0x450]
push edx
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
add eax, 2
push eax
call fcn.004ae390
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x240], eax
jmp 0x42f32a
push 0x10
lea edx, [ebp - 0x450]
push edx
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004ae390
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x240], eax
jmp 0x42f4f0
push str.fade
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx edx, al
test edx, edx
je 0x42f374
push 0xa
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004ae390
add esp, 0xc
mov ecx, dword [ebp - 0x44c]
mov byte [ecx + 0x244], al
jmp 0x42f4f0
push str.hole
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx edx, al
test edx, edx
je 0x42f3d5
push 0x4c7c0c
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004a4a19
add esp, 8
test eax, eax
jne 0x42f3b4
mov dword [ebp - 0x474], 1
jmp 0x42f3be
mov dword [ebp - 0x474], 0
mov eax, dword [ebp - 0x44c]
mov cl, byte [ebp - 0x474]
mov byte [eax + 0x245], cl
jmp 0x42f4f0
push str.xtiled
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx edx, al
test edx, edx
je 0x42f436
push 0x4c7c0c
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004a4a19
add esp, 8
test eax, eax
jne 0x42f415
mov dword [ebp - 0x478], 1
jmp 0x42f41f
mov dword [ebp - 0x478], 0
mov eax, dword [ebp - 0x44c]
mov cl, byte [ebp - 0x478]
mov byte [eax + 0x246], cl
jmp 0x42f4f0
push str.ytiled
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx edx, al
test edx, edx
je 0x42f494
push 0x4c7c0c
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004a4a19
add esp, 8
test eax, eax
jne 0x42f476
mov dword [ebp - 0x47c], 1
jmp 0x42f480
mov dword [ebp - 0x47c], 0
mov eax, dword [ebp - 0x44c]
mov cl, byte [ebp - 0x47c]
mov byte [eax + 0x247], cl
jmp 0x42f4f0
push 0x4c7c38
lea ecx, [ebp - 0x364]
call fcn.00439ab0
movzx edx, al
test edx, edx
je 0x42f4f0
push 0x4c7c0c
lea ecx, [ebp - 0x2e0]
call fcn.00439b90
push eax
call fcn.004a4a19
add esp, 8
test eax, eax
jne 0x42f4d4
mov dword [ebp - 0x480], 1
jmp 0x42f4de
mov dword [ebp - 0x480], 0
mov eax, dword [ebp - 0x44c]
mov cl, byte [ebp - 0x480]
mov byte [eax + 0x248], cl
mov edx, dword [ebp + 8]
movzx eax, word [edx]
mov dword [ebp - 0x4d0], eax
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x4d0], 0x20
je 0x42f510
jmp 0x42f515
jmp 0x42edfe
jmp 0x42edcb
mov ecx, dword [ebp - 0x44c]
add ecx, 0x108
call fcn.00439b90
push eax
lea ecx, [ebp - 0x25c]
call fcn.00402468
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push 0x2e
lea ecx, [ebp - 0x25c]
call fcn.00432bd0
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0xffffffff
je 0x42f988
mov ecx, dword [ebp + 0x10]
call fcn.00429870
mov ecx, eax
call fcn.004266c0
mov dword [ebp - 0x470], eax
call fcn.0042a4b0
push eax
lea ecx, [ebp - 0x448]
call fcn.00439740
mov byte [ebp - 4], 3
mov dword [ebp - 0x484], 8
mov dword [ebp - 0x454], 0
jmp 0x42f5ac
mov edx, dword [ebp - 0x454]
add edx, 1
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x454]
cmp eax, dword [ebp - 0x484]
jae 0x42f979
lea ecx, [ebp - 0x244]
call fcn.0040248d
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x454]
cmp dword [ecx*4 + 0x4eb064], 0x64
je 0x42f73c
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x454]
mov ecx, dword [eax*4 + 0x4eb064]
push ecx
push 0x4c7c40
lea edx, [ebp - 0x24]
push edx
call fcn.0040455f
add esp, 0xc
push 0xffffffffffffffff
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x394]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00404374
mov dword [ebp - 0x4d4], eax
mov edx, dword [ebp - 0x4d4]
mov dword [ebp - 0x4e4], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x464]
push eax
push 0
lea ecx, [ebp - 0x3ac]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00404374
mov dword [ebp - 0x4d8], eax
mov edx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x4dc]
push ecx
lea edx, [ebp - 0x3c4]
push edx
call fcn.00426c70
add esp, 0xc
mov dword [ebp - 0x4e0], eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4e4]
push ecx
mov edx, dword [ebp - 0x49c]
push edx
lea eax, [ebp - 0x37c]
push eax
call fcn.00426c30
add esp, 0xc
mov dword [ebp - 0x498], eax
mov ecx, dword [ebp - 0x498]
mov dword [ebp - 0x4a0], ecx
lea edx, [ebp - 0x244]
cmp edx, dword [ebp - 0x4a0]
je 0x42f702
xor eax, eax
mov byte [ebp - 0x458], al
movzx ecx, byte [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x498]
push edx
lea ecx, [ebp - 0x244]
call fcn.004027b4
lea ecx, [ebp - 0x37c]
call fcn.00402600
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c4]
call fcn.00402600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3ac]
call fcn.00402600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x394]
call fcn.00402600
jmp 0x42f778
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x4a4], eax
lea ecx, [ebp - 0x244]
cmp ecx, dword [ebp - 0x4a4]
je 0x42f778
xor edx, edx
mov byte [ebp - 0x455], dl
movzx eax, byte [ebp - 0x455]
push eax
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x244]
call fcn.0040272f
push 0x208
push 0
lea edx, [ebp - 0x22c]
push edx
call fcn.0049d5c0
add esp, 0xc
lea ecx, [ebp - 0x448]
call fcn.00439b90
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004ada77
add esp, 8
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x468], ecx
mov edx, dword [ebp - 0x468]
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x468]
cmp dword [eax + 0x14], 8
jb 0x42f7d9
mov dword [ebp - 0x494], 1
jmp 0x42f7e3
mov dword [ebp - 0x494], 0
mov cl, byte [ebp - 0x494]
mov byte [ebp - 0x456], cl
movzx edx, byte [ebp - 0x456]
test edx, edx
je 0x42f814
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
mov dword [ebp - 0x4a8], ecx
mov edx, dword [ebp - 0x4a8]
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x490]
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], ecx
mov edx, dword [ebp - 0x4b0]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f965
lea edx, [ebp - 0x244]
mov dword [ebp - 0x46c], edx
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x46c]
cmp dword [ecx + 0x14], 8
jb 0x42f885
mov dword [ebp - 0x48c], 1
jmp 0x42f88f
mov dword [ebp - 0x48c], 0
mov dl, byte [ebp - 0x48c]
mov byte [ebp - 0x457], dl
movzx eax, byte [ebp - 0x457]
test eax, eax
je 0x42f8c0
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ecx]
mov dword [ebp - 0x4e8], edx
mov eax, dword [ebp - 0x4e8]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x488]
mov dword [ebp - 0x4b8], ecx
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], edx
mov eax, dword [ebp - 0x4bc]
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x108
call fcn.00439a80
mov ecx, dword [ebp - 0x454]
mov edx, dword [ecx*4 + 0x4eb064]
push edx
push 0x64
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x44c]
mov dword [ecx + 0x24c], eax
mov edx, dword [ebp - 0x454]
mov eax, dword [edx*4 + 0x4eb064]
cmp eax, dword [ebp - 0x470]
je 0x42f954
mov ecx, dword [ebp - 0x484]
sub ecx, 1
cmp dword [ebp - 0x454], ecx
je 0x42f954
mov edx, dword [ebp - 0x454]
mov eax, dword [edx*4 + 0x4eb068]
cmp eax, dword [ebp - 0x470]
jbe 0x42f965
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x244]
call fcn.00402600
jmp 0x42f979
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x244]
call fcn.00402600
jmp 0x42f59d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x448]
call fcn.00439920
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.00402600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2e0]
call fcn.00439920
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x364]
call fcn.00439920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004250ca
mov esp, ebp
pop ebp
ret 0xc