Function at 0x437290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x5c7574]
push esi
xor esi, esi
push edi
cmp ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
je 0x4374b3
mov eax, dword [ebp + 8]
push eax
call fcn.004a4110
mov ebx, eax
cmp ebx, esi
mov dword [ebp + 8], ebx
je 0x4374b3
cmp dword [ebx + 0x1c], esi
je 0x4374b3
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4374b3
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x1c], edx
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov cl, byte [ebx + 0x28]
mov eax, dword [eax + 8]
test cl, cl
mov dword [ebp - 0x20], eax
jne 0x43731b
test al, al
jne 0x4372ef
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x1c0]
mov edx, dword [ecx + 8]
dec edx
xor eax, eax
cmp eax, edx
jg 0x43735d
mov ebx, dword [ecx + 4]
mov esi, eax
shl esi, 4
mov esi, dword [ebx + esi]
cmp dword [esi + 0x420], edi
je 0x437347
mov ebx, dword [ebp + 8]
inc eax
jmp 0x43732a
xor edx, edx
cmp eax, edx
jl 0x43735a
mov ecx, dword [ecx + 4]
shl eax, 4
mov esi, dword [ecx + eax]
cmp esi, edx
jne 0x437369
mov ebx, dword [ebp + 8]
push 1
push edi
mov ecx, ebx
call fcn.004467d0
jmp 0x4372ef
mov ebx, dword [ebp + 8]
xor cl, cl
mov al, byte [ebx + 0x28]
test al, al
jne 0x4373b4
mov al, byte [ebp - 0x20]
test al, al
jne 0x4373b4
cmp dword [esi + 0x65c], 3
jne 0x4373b4
mov eax, dword [esi + 0x780]
mov dword [esi + 8], edx
cmp eax, 0x7573
jne 0x43739b
mov dword [esi + 0x780], edx
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [edx + 0x1c]
push eax
call fcn.00502c20
push 0
mov ecx, esi
call fcn.00502b50
mov cl, 1
mov eax, dword [esi + 0x65c]
test eax, eax
je 0x4373ec
cmp eax, 2
je 0x4373ec
cmp eax, 3
jne 0x43749c
mov al, byte [ebx + 0x28]
test al, al
je 0x4372ef
mov ecx, dword [esi + 0x420]
push 1
push ecx
mov ecx, ebx
call fcn.004467d0
jmp 0x4372ef
mov eax, dword [esi + 8]
test eax, eax
je 0x437414
mov edx, dword [esi + 0x420]
mov ecx, ebx
push edx
mov dword [esi + 8], 0
call fcn.00445fa0
mov byte [esi + 0x367], 0
jmp 0x4372ef
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x437424
cmp dword [ebp - 0x24], eax
jge 0x4372ef
mov byte [esi + 0x367], 0
mov al, byte [ebx + 0x28]
test al, al
jne 0x437466
test cl, cl
je 0x437466
mov eax, dword [esi + 0x40]
test eax, eax
je 0x437466
mov eax, dword [esi + 0x54]
test eax, eax
je 0x437466
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x437466
mov edi, dword [esi + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x437466
mov byte [esi + 0x367], 1
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [edi + 0x1c]
push eax
call fcn.00502c20
push esi
call fcn.00456f40
mov dword [esi + 8], 1
mov ecx, dword [edi + 0x144]
add esp, 4
mov dword [esi], ecx
mov ecx, esi
push 1
call fcn.00503100
mov ecx, esi
call fcn.005031f0
mov eax, dword [ebp - 0x18]
mov ecx, ebx
inc eax
mov dword [ebp - 0x18], eax
call fcn.00446aa0
cmp dword [ebp - 0x18], eax
jl 0x4372ef
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4