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

Disassembly:
sub esp, 0x280
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x38], ecx
call fcn.004dbad0
mov ebx, dword [esp + 0x294]
mov esi, eax
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp ecx, eax
je 0x4dbe97
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4dbe6d
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4dbe74
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4dbe82
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, ebx
call fcn.00405870
jmp 0x4dbe97
mov ecx, ebx
call fcn.00412670
mov esi, dword [esi]
mov dword [ebx], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4dbec6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4dbec6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4dbfe9
mov edx, dword [0x546560]
lea eax, [esp + 0x10]
push eax
mov esi, 1
mov dword [esp + 0x14], edx
call fcn.004f2ff0
mov ecx, 0x546f04
add esp, 4
test ecx, ecx
jne 0x4dbf04
xor eax, eax
jmp 0x4dbf0b
push 0x546f04
call edi
push 0x546f04
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [0x55cedc]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
mov eax, 0x54e9c8
test eax, eax
je 0x4dbf3d
push 0x54e9c8
call edi
push 0x54e9c8
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
lea ecx, [esp + 0x10]
push ecx
call fcn.004b8df0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
je 0x4dbfa3
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4dbf77
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4dbf7e
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4dbf8c
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, ebx
call fcn.00405870
jmp 0x4dbfa3
mov ecx, ebx
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebx]
push 0
push eax
push 0x546fa4
push 0x546fa0
call fcn.0048dec0
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4dbfe9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4dbfe9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ebp, dword [esp + 0x298]
test ebp, ebp
jne 0x4dc036
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4dc464
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4dc015
test al, 0x10
jne 0x4dc464
test esi, esi
je 0x4dc036
mov eax, dword [ebx]
push eax
call fcn.0043cd00
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret 0xc
lea ecx, [esp + 0x54]
call fcn.00529a80
lea ecx, [esp + 0x44]
call fcn.0050fea0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x44]
push edx
push 6
call fcn.00510c80
mov eax, dword [0x546560]
lea ecx, [esp + 0x90]
push 0x100
push ecx
push 0x80
mov dword [esp + 0x94], 0
mov dword [esp + 0x20], eax
call fcn.00412530
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x4dc0a5
lea eax, [esp + 0x90]
lea ecx, [esp + 0x14]
push eax
call fcn.00405920
jmp 0x4dc0f3
push 0x1ff
lea ecx, [esp + 0x18]
mov esi, 0x200
call fcn.00413620
test eax, eax
je 0x4dc0e8
push esi
push eax
push 0x80
call fcn.00412530
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4dc0e8
add esi, 0x100
lea ecx, [esp + 0x14]
lea edx, [esi - 1]
push edx
call fcn.00413620
test eax, eax
jne 0x4dc0bc
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x553d9c
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4dc152
mov edx, ecx
shr edx, 0x10
jne 0x4dc11d
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00413c90
jmp 0x4dc152
push 0x553d9c
call edi
mov esi, eax
test esi, esi
je 0x4dc152
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4dc152
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x553d9c
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]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
je 0x4dc1a0
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4dc170
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4dc177
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4dc187
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x64]
call fcn.00405870
jmp 0x4dc1a0
lea ecx, [esp + 0x5c]
call fcn.00412670
mov eax, dword [ebx]
mov dword [esp + 0x5c], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x2c]
push 5
push ecx
call fcn.004bc8d0
mov eax, dword [0x546560]
lea edx, [esp + 0x24]
push eax
push 0x546fa4
push 0x546fa0
push edx
mov dword [esp + 0x30], eax
call fcn.0048def0
mov ecx, dword [ebx]
mov esi, eax
add esp, 0x18
mov eax, dword [esi]
cmp ecx, eax
je 0x4dc215
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4dc1eb
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4dc1f2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4dc200
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
call fcn.00405870
jmp 0x4dc215
mov ecx, ebx
call fcn.00412670
mov esi, dword [esi]
mov dword [ebx], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4dc244
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4dc244
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test ebp, ebp
jne 0x4dc405
mov eax, dword [0x546560]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x54e9c4
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4dc29a
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4dc29a
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x4dc29a
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x54e9c4
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x5466c0
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x4dc2e2
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4dc2e2
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4dc2e2
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x5466c0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x5466c0
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x4dc32a
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4dc32a
push esi
lea ecx, [esp + 0x28]
call fcn.00405530
test eax, eax
je 0x4dc32a
mov edx, dword [esp + 0x24]
inc esi
push esi
push 0x5466c0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x30]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x28]
push edx
call fcn.004059f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x38]
push eax
call fcn.00405440
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x44]
push ebx
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00412dc0
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00412dc0
lea edx, [esp + 0x50]
push eax
push edx
call fcn.00412dc0
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
push 0
push 0x553d98
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x4c]
call fcn.00405700
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
lea ecx, [esp + 0x38]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea eax, [esp + 0x10]
lea edx, [esp + 0x2c]
push eax
push 0
push ecx
mov ecx, esp
push edx
call fcn.00405440
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x64]
call fcn.00529f50
test eax, eax
jne 0x4dc473
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.0050fe40
lea ecx, [esp + 0x54]
call fcn.00529ad0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x280
ret 0xc
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004129b0
push ebx
lea ecx, [esp + 0x34]
call fcn.00405440
lea eax, [esp + 0x30]
push eax
call fcn.004b7340
add esp, 4
test eax, eax
je 0x4dc4ba
push 0
push 0x548c28
lea ecx, [esp + 0x38]
call fcn.00405c70
test eax, eax
jne 0x4dc4ba
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.004129b0
mov edx, dword [ebx]
push 0
push edx
push 0x546fa4
push 0x546fa0
call fcn.0048dec0
mov eax, dword [0x55ab40]
add esp, 0x10
test eax, eax
je 0x4dc4f7
push 0
mov ecx, ebx
call fcn.00413620
push eax
mov eax, dword [0x55ab40]
push 0
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.0050fe40
lea ecx, [esp + 0x54]
call fcn.00529ad0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x280
ret 0xc