Function at 0x4dc9f0
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.004dc690
mov ebx, dword [esp + 0x294]
mov esi, eax
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp ecx, eax
je 0x4dca57
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4dca2d
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4dca34
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4dca42
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, ebx
call fcn.00405870
jmp 0x4dca57
mov ecx, ebx
call fcn.004124c0
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 [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4dca86
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4dca86
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
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 0x4dcba9
mov edx, dword [0x547570]
lea eax, [esp + 0x10]
push eax
mov esi, 1
mov dword [esp + 0x14], edx
call fcn.004f3bb0
mov ecx, 0x547f14
add esp, 4
test ecx, ecx
jne 0x4dcac4
xor eax, eax
jmp 0x4dcacb
push 0x547f14
call edi
push 0x547f14
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [0x55df90]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
mov eax, 0x54fa38
test eax, eax
je 0x4dcafd
push 0x54fa38
call edi
push 0x54fa38
push eax
lea ecx, [esp + 0x18]
call fcn.00405a90
lea ecx, [esp + 0x10]
push ecx
call fcn.004b9eb0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
je 0x4dcb63
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4dcb37
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4dcb3e
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4dcb4c
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, ebx
call fcn.00405870
jmp 0x4dcb63
mov ecx, ebx
call fcn.004124c0
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 0x547fb4
push 0x547fb0
call fcn.0048ee10
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4dcba9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4dcba9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ebp, dword [esp + 0x298]
test ebp, ebp
jne 0x4dcbf6
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4dd024
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4dcbd5
test al, 0x10
jne 0x4dd024
test esi, esi
je 0x4dcbf6
mov eax, dword [ebx]
push eax
call fcn.0043cf90
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.0052a550
lea ecx, [esp + 0x44]
call fcn.005107a0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x44]
push edx
push 6
call fcn.00511580
mov eax, dword [0x547570]
lea ecx, [esp + 0x90]
push 0x100
push ecx
push 0x80
mov dword [esp + 0x94], 0
mov dword [esp + 0x20], eax
call fcn.00412380
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x4dcc65
lea eax, [esp + 0x90]
lea ecx, [esp + 0x14]
push eax
call fcn.00405920
jmp 0x4dccb3
push 0x1ff
lea ecx, [esp + 0x18]
mov esi, 0x200
call fcn.00413470
test eax, eax
je 0x4dcca8
push esi
push eax
push 0x80
call fcn.00412380
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x4dcca8
add esi, 0x100
lea ecx, [esp + 0x14]
lea edx, [esi - 1]
push edx
call fcn.00413470
test eax, eax
jne 0x4dcc7c
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x554e0c
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4dcd12
mov edx, ecx
shr edx, 0x10
jne 0x4dccdd
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00413ae0
jmp 0x4dcd12
push 0x554e0c
call edi
mov esi, eax
test esi, esi
je 0x4dcd12
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4dcd12
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, 0x554e0c
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 0x4dcd60
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4dcd30
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4dcd37
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4dcd47
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x64]
call fcn.00405870
jmp 0x4dcd60
lea ecx, [esp + 0x5c]
call fcn.004124c0
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.004bd990
mov eax, dword [0x547570]
lea edx, [esp + 0x24]
push eax
push 0x547fb4
push 0x547fb0
push edx
mov dword [esp + 0x30], eax
call fcn.0048ee40
mov ecx, dword [ebx]
mov esi, eax
add esp, 0x18
mov eax, dword [esi]
cmp ecx, eax
je 0x4dcdd5
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4dcdab
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4dcdb2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4dcdc0
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
call fcn.00405870
jmp 0x4dcdd5
mov ecx, ebx
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4dce04
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4dce04
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test ebp, ebp
jne 0x4dcfc5
mov eax, dword [0x547570]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x54fa34
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4dce5a
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4dce5a
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x4dce5a
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x54fa34
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x5476d0
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x4dcea2
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4dcea2
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4dcea2
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x5476d0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x5476d0
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x4dceea
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4dceea
push esi
lea ecx, [esp + 0x28]
call fcn.00405530
test eax, eax
je 0x4dceea
mov edx, dword [esp + 0x24]
inc esi
push esi
push 0x5476d0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
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.00412c10
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00412c10
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00412c10
lea edx, [esp + 0x50]
push eax
push edx
call fcn.00412c10
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
push 0
push 0x554e08
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.0052aa20
test eax, eax
jne 0x4dd033
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.00510740
lea ecx, [esp + 0x54]
call fcn.0052a5a0
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.00412800
push ebx
lea ecx, [esp + 0x34]
call fcn.00405440
lea eax, [esp + 0x30]
push eax
call fcn.004b8290
add esp, 4
test eax, eax
je 0x4dd07a
push 0
push 0x549c48
lea ecx, [esp + 0x38]
call fcn.00405c70
test eax, eax
jne 0x4dd07a
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00412800
mov edx, dword [ebx]
push 0
push edx
push 0x547fb4
push 0x547fb0
call fcn.0048ee10
mov eax, dword [0x55bbe0]
add esp, 0x10
test eax, eax
je 0x4dd0b7
push 0
mov ecx, ebx
call fcn.00413470
push eax
mov eax, dword [0x55bbe0]
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.00510740
lea ecx, [esp + 0x54]
call fcn.0052a5a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x280
ret 0xc