Function at 0x482fdd
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x6a6b85
call fcn.0066edfb
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.00484c62
test al, al
je 0x4830a6
mov ecx, esi
call fcn.00482dae
lea ebx, [edi + 8]
push ebx
lea ecx, [esi + 0x28]
call fcn.0047f20b
push ebx
mov byte [esi + 0x25], 1
call fcn.00484cfb
xor ebx, ebx
test al, al
je 0x48306d
cmp word [edi + 0xc], bx
jne 0x48306d
mov ax, word [edi + 8]
push 0x3a
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
push 0x5c
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00484fa0
test al, al
je 0x48306d
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [esi], ecx
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [esi + 4], ecx
jmp 0x48332d
or dword [ebp - 0x68], 0xffffffff
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.00483df8
test al, al
je 0x483097
cmp byte [ebp - 0x63], 0
je 0x483092
mov eax, dword [ebp - 0x60]
mov dword [esi], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
xor eax, eax
lea ebx, [eax + 1]
lea ecx, [ebp - 0x68]
call fcn.00483b25
mov al, bl
jmp 0x48332d
push edi
call fcn.0048470d
xor ebx, ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 1
test eax, eax
js 0x48327c
lea eax, [edi + eax*2]
cmp word [eax + 2], bx
je 0x48327c
push eax
lea ecx, [ebp - 0x30]
call fcn.0047f08b
xor eax, eax
lea ecx, [ebp - 0x1c]
inc eax
push edi
mov dword [ebp - 4], eax
call fcn.0047f08b
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
cmp ecx, dword [ebp - 0x18]
jae 0x4830fd
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x2c]
cmp ecx, 6
jbe 0x48311d
mov eax, dword [ebp - 0x30]
push 0x6b9ae4
lea eax, [eax + ecx*2]
add eax, 0xfffffff4
push eax
call fcn.0047ffaf
test al, al
jne 0x48312a
push str.:_DATA
lea ecx, [ebp - 0x30]
call fcn.0047f455
push dword [ebp - 0x1c]
call fcn.00484cfb
mov ecx, dword [ebp - 0x1c]
test al, al
je 0x483174
mov eax, dword [ebp - 0x3c]
cmp eax, 2
je 0x48314f
cmp eax, 3
jne 0x483174
push 0x5c
pop eax
cmp word [ecx + 4], ax
jne 0x483174
mov ecx, esi
call fcn.00482dae
lea ecx, [esi + 0x28]
xor edx, edx
cmp dword [ebp - 0x3c], 2
mov eax, dword [ecx]
mov dword [ecx + 4], ebx
mov word [eax], dx
jne 0x483184
lea eax, [ebp - 0x1c]
push eax
call fcn.0047f1aa
jmp 0x483184
push ecx
mov ecx, esi
call fcn.00482fdd
test al, al
je 0x48326a
and dword [esi + 0x20], 0xfffffbef
or dword [ebp - 0x68], 0xffffffff
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.0047f05a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0047f0c1
jmp 0x4831dc
cmp byte [ebp - 0x1d], 0
je 0x48322e
push dword [ebp - 0x30]
push dword [ebp - 0x58]
call fcn.0047ff1f
test al, al
jne 0x4831f6
push dword [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00480130
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0047f0c1
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x68]
call fcn.0048395e
test al, al
jne 0x4831b2
jmp 0x483236
mov eax, dword [ebp - 0x54]
cmp eax, 7
jbe 0x483211
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x483211
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x54], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x58]
push eax
lea ecx, [esi + 0x28]
call fcn.0047f417
mov eax, dword [ebp - 0x48]
mov dword [esi], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 4], eax
mov byte [esi + 0x24], 1
jmp 0x483239
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x24], bl
push dword [ebp - 0x58]
call fcn.00480130
push dword [ebp - 0x64]
call fcn.00480130
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
call fcn.00482dcf
push dword [ebp - 0x1c]
call fcn.00480130
push dword [ebp - 0x30]
call fcn.00480130
pop ecx
pop ecx
jmp 0x48332a
push dword [ebp - 0x1c]
call fcn.00480130
push dword [ebp - 0x30]
call fcn.00480130
pop ecx
pop ecx
or dword [ebp - 0x3c], 0xffffffff
push esi
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 6
call fcn.00483479
test al, al
jne 0x48331c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 2
je 0x4832c1
cmp eax, 0x35
je 0x4832c1
cmp eax, 0x43
je 0x4832c1
cmp eax, 0x7b
je 0x4832c1
cmp eax, 0xa1
jne 0x483443
push edi
call fcn.00484d95
push 4
pop edx
test al, al
mov ecx, ebx
movzx eax, word [edi]
cmovne ecx, edx
push 0x5c
pop edx
mov dword [ebp - 0x34], ecx
cmp ax, dx
je 0x4832e4
cmp eax, 0x2f
jne 0x483335
cmp word [edi + 2], bx
jne 0x483335
push edi
call fcn.00483687
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x483443
test al, 0x10
je 0x483443
mov ecx, esi
call fcn.00482dae
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov dword [esi + 0x2c], ebx
mov word [eax], cx
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x3c]
call fcn.00482dcf
mov al, byte [ebp - 0x24]
call fcn.0066edaa
ret 4
lea eax, [edi + ecx*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.00484d2a
test al, al
je 0x483397
mov eax, dword [ebp - 0x34]
cmp word [edi + eax*2 + 6], bx
jne 0x483397
push edi
call fcn.00483687
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x483443
test al, 0x10
je 0x483443
mov ecx, esi
call fcn.00482dae
mov eax, dword [ebp - 0x34]
lea ecx, [esi + 0x28]
push dword [ebp - 0x28]
mov dword [esi + 0x20], eax
call fcn.0047f20b
push 2
pop eax
cmp dword [esi + 0x2c], eax
jbe 0x48331c
mov dword [esi + 0x2c], eax
xor ecx, ecx
mov eax, dword [esi + 0x28]
mov word [eax + 4], cx
jmp 0x48331c
push edi
call fcn.00484a2c
test eax, eax
je 0x483443
lea eax, [edi + eax*2]
mov dword [ebp - 0x34], eax
cmp word [eax], bx
je 0x483443
push eax
call fcn.00484759
test eax, eax
jns 0x483443
push edi
lea ecx, [ebp - 0x4c]
call fcn.0047f08b
push 0x5c
pop eax
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.0047e3b8
push 0x2a
lea ecx, [ebp - 0x4c]
call fcn.0047e3b8
push esi
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x1d], bl
call fcn.00483479
test al, al
je 0x483419
lea eax, [esi + 0x28]
push 0x6b9a10
push dword [eax]
mov dword [ebp - 0x28], eax
call fcn.00670da3
pop ecx
pop ecx
test eax, eax
jne 0x483415
mov ecx, dword [ebp - 0x28]
jmp 0x483463
mov byte [ebp - 0x1d], 1
push edi
call fcn.00483687
cmp byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], eax
jne 0x48344b
cmp eax, 0xffffffff
je 0x483431
test al, 0x10
jne 0x48344b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x4c]
call fcn.00480130
pop ecx
mov byte [ebp - 0x24], bl
jmp 0x483322
mov ecx, esi
call fcn.00482dae
cmp dword [ebp - 0x28], 0xffffffff
lea ecx, [esi + 0x28]
push 0x10
pop eax
cmovne eax, dword [ebp - 0x28]
mov dword [esi + 0x20], eax
push dword [ebp - 0x34]
call fcn.0047f20b
push dword [ebp - 0x4c]
call fcn.00480130
pop ecx
jmp 0x483322