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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b70f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1ed8
call fcn.0057ed50
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
lea ecx, [ebp - 0x1ee8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
call fcn.004fc6e0
mov eax, dword [ebx + 0x460]
push edi
push eax
lea ecx, [ebp - 0x1ee8]
mov byte [ebp - 4], 1
call fcn.004fce00
cmp eax, edi
jne 0x496351
mov eax, dword [0x67a9b4]
mov ecx, dword [0x67a88c]
push 0x30
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x496597
lea ecx, [ebp - 0xd64]
call fcn.00549f90
lea edx, [ebp - 0xd64]
push 1
push edx
lea ecx, [ebp - 0x1ee8]
mov byte [ebp - 4], 2
call fcn.004fdcb0
cmp eax, edi
je 0x496393
mov eax, dword [0x67a9b4]
mov ecx, dword [0x67a88c]
push 0x30
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x496588
push 0x651468
push 0x65145c
lea ecx, [ebp - 0xd64]
call fcn.0054f250
mov ecx, dword [0x67a078]
lea edx, [ebp - 0xd64]
push edx
call fcn.004ceb00
push edi
lea ecx, [ebp - 0xd64]
call fcn.0054f030
lea eax, [ebp - 0xd64]
push eax
call fcn.00474d70
mov eax, dword [ebx + 0x434]
mov ecx, dword [0x67a07c]
add esp, 4
cmp eax, edi
mov dword [ebp - 0xd64], ecx
mov dword [ebp - 0xd60], 5
jne 0x4963fb
lea eax, [ebx + 0x438]
mov edx, 0x657148
lea esi, [ebx + 0x478]
test edx, edx
je 0x4964cd
cmp eax, edi
je 0x4964cd
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
call fcn.00401fc0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00401070
push 0x657148
lea ecx, [ebp - 0x44]
call fcn.00401f30
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
jne 0x49644f
lea eax, [ebp - 0x24]
mov edi, dword [ebp - 0x3c]
push eax
call fcn.0057e90a
lea eax, [eax + edi + 2]
mov dword [ebp - 0x18], eax
lea edi, [eax + eax]
push edi
call fcn.005970d9
mov edx, eax
add esp, 8
test edx, edx
mov dword [esi], edx
je 0x4964b3
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x28]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x44]
call fcn.00401fb0
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ecx
call fcn.0057e89a
mov edx, dword [esi]
push edx
call fcn.0057e90a
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401070
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
je 0x4964d7
mov esi, eax
jmp 0x4964da
add esi, 4
push esi
lea ecx, [ebp - 0xd64]
call fcn.0054f3b0
mov al, byte [ebx + 0x2bb]
push 1
lea ecx, [ebp - 0xd64]
mov byte [ebp - 0x3d9], al
call fcn.0054f4a0
mov ecx, dword [ebx + 0x430]
push 7
push 0x1436
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x51c]
cmp eax, 3
je 0x496533
cmp eax, edi
je 0x496533
push 0x64
call esi
jmp 0x49651e
mov edx, dword [ebx + 0x430]
push edi
push 0x1437
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp - 0x51c], 3
je 0x4965b9
mov eax, dword [0x67a890]
lea ecx, [ebp - 0xd64]
push eax
push edi
push 1
mov dword [ebp - 0xd60], edi
call fcn.0054c420
mov ecx, dword [ebp - 0xd14]
push ecx
call fcn.00580313
add esp, 4
lea ecx, [ebp - 0xd64]
call fcn.005516e0
lea ecx, [ebp - 0xd64]
mov byte [ebp - 4], 1
call fcn.0054a0f0
lea ecx, [ebp - 0x1ee8]
mov byte [ebp - 4], 0
call fcn.004fc730
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc88]
cmp eax, edi
je 0x4965d8
push eax
lea edx, [ebx + 0x484]
push 0x64efb0
push edx
call fcn.00593b08
add esp, 0xc
lea esi, [ebx + 0x464]
push edi
push esi
lea ecx, [ebp - 0xd44]
call fcn.0052b350
lea ecx, [ebp - 0xd64]
call fcn.005516e0
lea ecx, [ebp - 0x1b4]
call fcn.0046f730
mov eax, dword [ebx + 0x478]
mov esi, dword [esi]
cmp eax, edi
mov byte [ebp - 4], 5
jne 0x496617
lea eax, [ebx + 0x47c]
push edi
push esi
push eax
lea ecx, [ebp - 0x1b4]
call fcn.004733b0
mov cl, byte [ebx + 0x2bb]
mov dword [ebp - 0x18], eax
test cl, cl
je 0x496816
cmp dword [ebx + 0x474], edi
je 0x49666c
xor esi, esi
mov eax, dword [ebx + 0x46c]
cmp esi, eax
mov eax, dword [ebx + 0x474]
jge 0x496663
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x496660
push eax
call fcn.00597102
add esp, 4
inc esi
jmp 0x496640
push eax
call fcn.00597102
add esp, 4
mov dword [ebx + 0x474], edi
mov dword [ebx + 0x46c], edi
mov dword [ebx + 0x470], edi
push 0xc8
mov dword [ebx + 0x46c], edi
mov dword [ebx + 0x470], 0x32
call fcn.005970d9
mov ecx, dword [ebx + 0x470]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x474], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x474]
test eax, eax
jne 0x4966db
lea eax, [ebp - 0x34]
push 0x622bf0
push eax
mov dword [ebp - 0x34], 0xc0000017
call fcn.00580382
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x496811
mov edx, dword [esi]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.0054c0a0
add esp, 8
test eax, eax
je 0x496804
mov eax, dword [ebp - 0x14]
test byte [eax + 0xc], 1
je 0x4967fb
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4967f8
mov eax, dword [ebx + 0x470]
mov ecx, dword [ebx + 0x46c]
mov edx, dword [ebp - 0x14]
cmp ecx, eax
mov dword [ebp - 0x30], edx
jne 0x4967cc
add eax, 0x32
mov dword [ebx + 0x470], eax
shl eax, 2
push eax
call fcn.005970d9
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp - 0x2c], edx
jne 0x496777
lea ecx, [ebp - 0x38]
push 0x622bf0
push ecx
mov dword [ebp - 0x38], 0xc0000017
call fcn.00580382
mov ecx, dword [ebx + 0x470]
xor eax, eax
shl ecx, 2
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x46c]
mov esi, dword [ebx + 0x474]
shl ecx, 2
mov edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x474]
push eax
call fcn.00597102
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebx + 0x474], eax
mov ecx, dword [ebx + 0x46c]
mov edx, dword [ebx + 0x474]
mov eax, dword [ebp - 0x30]
mov dword [edx + ecx*4], eax
mov eax, dword [ebx + 0x46c]
inc eax
mov dword [ebx + 0x46c], eax
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x1c], ecx
mov esi, ecx
jmp 0x4966e1
mov eax, dword [ebp - 0x14]
push eax
call fcn.00597102
add esp, 4
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x1c], ecx
mov esi, ecx
jmp 0x4966e1
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, edi
je 0x496826
push eax
lea ecx, [ebp - 0x1b4]
call fcn.00472ed0
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 2
call fcn.0046fbb0
lea ecx, [ebp - 0xd64]
mov byte [ebp - 4], 1
call fcn.0054a0f0
lea ecx, [ebp - 0x1ee8]
mov byte [ebp - 4], 0
call fcn.004fc730
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret