Function at 0x412710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d68e2
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x63ae80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x278], edi
call fcn.00413730
mov dword [ebp - 0x270], eax
test eax, eax
js 0x412b04
cmp word [esi + eax*2 + 2], 0
lea eax, [esi + eax*2]
je 0x412b04
mov ebx, eax
lea edi, [ebp - 0x284]
call fcn.0040f3b0
mov ebx, esi
lea edi, [ebp - 0x290]
mov dword [ebp - 4], 0
call fcn.0040f3b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x270]
mov edi, dword [ebp - 0x290]
cmp eax, dword [ebp - 0x28c]
jae 0x4127b2
xor ecx, ecx
mov edx, edi
mov dword [ebp - 0x28c], eax
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x280]
cmp eax, 6
jbe 0x4127d5
mov ecx, dword [ebp - 0x284]
lea eax, [ecx + eax*2 - 0xc]
mov edx, 0x60fc08
call fcn.0040ed30
test al, al
jne 0x412829
xor ebx, ebx
jmp 0x4127e0
inc ebx
cmp word [ebx*2 + str.:_DATA], 0
jne 0x4127e0
mov ecx, ebx
lea edi, [ebp - 0x284]
call fcn.0040f1d0
mov edx, dword [ebp - 0x284]
mov edi, dword [ebp - 0x280]
lea ecx, [ebx + ebx + 2]
push ecx
lea eax, [edx + edi*2]
push str.:_DATA
push eax
call fcn.005a9de0
add esp, 0xc
add edi, ebx
mov dword [ebp - 0x280], edi
mov edi, dword [ebp - 0x290]
movzx eax, word [edi]
cmp eax, 0x61
jb 0x412836
cmp eax, 0x7a
jbe 0x412840
cmp eax, 0x41
jb 0x4128a2
cmp eax, 0x5a
ja 0x4128a2
cmp word [edi + 2], 0x3a
jne 0x4128a2
mov ecx, dword [ebp - 0x270]
cmp ecx, 2
je 0x41285e
cmp ecx, 3
jne 0x4128a2
cmp word [edi + 4], 0x5c
jne 0x4128a2
mov edi, dword [ebp - 0x278]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], eax
mov word [edi + 0x24], ax
mov edx, dword [edi + 0x28]
lea esi, [edi + 0x28]
mov dword [esi + 4], eax
mov word [edx], ax
cmp ecx, 2
jne 0x4128bc
lea ebx, [ebp - 0x290]
call fcn.0040f470
jmp 0x4128bc
mov ecx, dword [ebp - 0x278]
push edi
call fcn.00412710
test al, al
je 0x412ae0
mov edi, dword [ebp - 0x278]
and dword [edi + 0x20], 0xfffffbef
lea ecx, [ebp - 0x2a0]
push ecx
lea ebx, [ebp - 0x290]
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004122a0
mov byte [ebp - 4], 2
push 8
call fcn.004a4d50
mov esi, eax
mov eax, 3
xor edx, edx
add esp, 4
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], eax
mov word [esi], dx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2a0]
cmp eax, 0xffffffff
je 0x412971
mov ecx, dword [0x644628]
test ecx, ecx
je 0x4129bd
lea edx, [ebp - 0x26c]
push edx
push eax
call ecx
test eax, eax
je 0x4129cd
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x268]
lea ebx, [ebp - 0x264]
lea edi, [ebp - 0x2bc]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], ecx
call fcn.0040f400
mov edi, dword [ebp - 0x278]
jmp 0x41298c
mov ecx, dword [ebp - 0x29c]
lea edx, [ebp - 0x2bc]
lea esi, [ebp - 0x2a0]
call fcn.004125c0
test al, al
je 0x4129c7
mov edx, dword [ebp - 0x284]
mov ebx, dword [ebp - 0x2bc]
push edx
mov ecx, ebx
call fcn.0040ebf0
add esp, 4
test al, al
jne 0x412a42
push ebx
mov byte [ebp - 4], 2
call fcn.004a4d8a
add esp, 4
jmp 0x4128e6
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4129cd
mov esi, dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
sete al
test al, al
jne 0x412a38
push esi
call fcn.004a4d8a
mov eax, dword [ebp - 0x29c]
add esp, 4
push eax
call fcn.004a4d8a
mov eax, dword [ebp - 0x2a0]
add esp, 4
cmp eax, 0xffffffff
je 0x412a15
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x412a15
mov dword [ebp - 0x2a0], 0xffffffff
mov ecx, dword [ebp - 0x290]
push ecx
call fcn.004a4d8a
mov edx, dword [ebp - 0x284]
add esp, 4
push edx
call fcn.004a4d8a
add esp, 4
jmp 0x412d65
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4129dd
mov ecx, dword [ebp - 0x2b8]
cmp ecx, 7
jbe 0x412a60
lea eax, [ecx - 6]
cmp eax, ecx
jae 0x412a60
xor ecx, ecx
mov dword [ebp - 0x2b8], eax
mov word [ebx + eax*2], cx
lea eax, [edi + 0x28]
lea esi, [ebp - 0x2bc]
call fcn.0040f4d0
mov edx, dword [ebp - 0x2ac]
mov eax, dword [ebp - 0x2a8]
push ebx
mov dword [edi], edx
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
call fcn.004a4d8a
mov ecx, dword [ebp - 0x29c]
add esp, 4
push ecx
call fcn.004a4d8a
mov eax, dword [ebp - 0x2a0]
add esp, 4
cmp eax, 0xffffffff
je 0x412abb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x412abb
mov dword [ebp - 0x2a0], 0xffffffff
mov edx, dword [ebp - 0x290]
push edx
call fcn.004a4d8a
mov eax, dword [ebp - 0x284]
add esp, 4
push eax
call fcn.004a4d8a
add esp, 4
mov al, 1
jmp 0x412d67
mov ecx, dword [ebp - 0x290]
push ecx
call fcn.004a4d8a
mov edx, dword [ebp - 0x284]
add esp, 4
push edx
call fcn.004a4d8a
mov edi, dword [ebp - 0x278]
add esp, 4
mov dword [ebp - 0x270], 0xffffffff
push edi
mov edx, esi
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 4
call fcn.00412490
test al, al
jne 0x412be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c0], eax
cmp eax, 2
je 0x412b56
cmp eax, 0x35
je 0x412b56
cmp eax, 0x43
je 0x412b56
cmp eax, 0x7b
je 0x412b56
cmp eax, 0xa1
jne 0x412d53
movzx eax, word [esi]
xor edx, edx
cmp eax, 0x5c
je 0x412b65
cmp eax, 0x2f
jne 0x412b8d
movzx ecx, word [esi + 2]
cmp ecx, 0x5c
je 0x412b73
cmp ecx, 0x2f
jne 0x412b8d
cmp word [esi + 4], 0x3f
jne 0x412b8d
movzx ecx, word [esi + 6]
cmp ecx, 0x5c
je 0x412b88
cmp ecx, 0x2f
jne 0x412b8d
mov edx, 4
cmp eax, 0x5c
je 0x412b97
cmp eax, 0x2f
jne 0x412bfd
cmp word [esi + 2], 0
jne 0x412bfd
mov eax, esi
call fcn.004126b0
cmp eax, 0xffffffff
je 0x412d53
test al, 0x10
je 0x412d53
xor ecx, ecx
mov dword [edi + 0x20], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], ecx
mov word [edi + 0x24], cx
mov dword [edi + 0x2c], ecx
mov ecx, dword [edi + 0x28]
xor edx, edx
mov word [ecx], dx
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
je 0x412bf6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x412d67
movzx eax, word [esi + edx*2]
lea ebx, [esi + edx*2]
cmp eax, 0x61
jb 0x412c0e
cmp eax, 0x7a
jbe 0x412c18
cmp eax, 0x41
jb 0x412c89
cmp eax, 0x5a
ja 0x412c89
cmp word [ebx + 2], 0x3a
jne 0x412c89
movzx eax, word [ebx + 4]
cmp eax, 0x5c
je 0x412c2d
cmp eax, 0x2f
jne 0x412c89
cmp word [esi + edx*2 + 6], 0
jne 0x412c89
mov eax, esi
call fcn.004126b0
mov edx, eax
cmp edx, 0xffffffff
je 0x412d53
test dl, 0x10
je 0x412d53
mov eax, edi
call fcn.00412680
mov dword [edi + 0x20], edx
add edi, 0x28
call fcn.0040f400
mov eax, 2
cmp dword [edi + 4], eax
jbe 0x412c77
mov dword [edi + 4], eax
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + 4], cx
lea esi, [ebp - 0x270]
call fcn.00412330
mov al, 1
jmp 0x412d67
mov edx, esi
call fcn.00413660
test eax, eax
je 0x412d53
cmp word [esi + eax*2], 0
lea edx, [esi + eax*2]
mov dword [ebp - 0x2a4], edx
je 0x412d53
call fcn.004135a0
test eax, eax
jns 0x412d53
mov ebx, esi
lea edi, [ebp - 0x284]
call fcn.0040f3b0
mov eax, edi
mov byte [ebp - 4], 5
call fcn.00412230
push 0x2a
mov eax, edi
call fcn.0040eb10
mov ebx, dword [ebp - 0x278]
mov edx, dword [ebp - 0x284]
push ebx
lea ecx, [ebp - 0x270]
mov byte [ebp - 0x271], 0
call fcn.00412490
test al, al
je 0x412d1b
lea edi, [ebx + 0x28]
mov ecx, 0x60fc20
mov eax, edi
call fcn.00412260
test al, al
jne 0x412da0
mov byte [ebp - 0x271], 1
mov eax, esi
call fcn.004126b0
cmp byte [ebp - 0x271], 0
mov edx, eax
jne 0x412d85
cmp edx, 0xffffffff
je 0x412d37
test dl, 0x10
jne 0x412d85
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.004a4d8a
add esp, 4
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
je 0x412d65
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret 4
mov eax, ebx
call fcn.00412680
cmp edx, 0xffffffff
je 0x412d96
mov dword [ebx + 0x20], edx
jmp 0x412d9d
mov dword [ebx + 0x20], 0x10
lea edi, [ebx + 0x28]
mov ebx, dword [ebp - 0x2a4]
call fcn.0040f400
mov edx, dword [ebp - 0x284]
push edx
call fcn.004a4d8a
add esp, 4
lea esi, [ebp - 0x270]
call fcn.00412330
mov al, 1
jmp 0x412d67