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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x250], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dfbc3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004e7860
mov ebx, eax
mov eax, ebx
call fcn.004d40f0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x104
jl 0x4df45f
mov eax, dword [0x4f1264]
mov dword [eax], 0x233f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4dfba5
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4df48a
mov edx, 0x4dfbd4
mov ecx, 4
mov eax, ebx
call fcn.0041eaec
test eax, eax
jne 0x4df48a
mov eax, 0x4dfbe0
call fcn.004d5e10
mov ebx, eax
lea eax, [ebp - 0x246]
mov ecx, 0x104
xor edx, edx
call fcn.004d41e4
lea eax, [ebp - 0x246]
mov edx, ebx
call fcn.004d4100
lea eax, [ebp - 0x246]
mov dx, 0x2f
call fcn.004d84a0
mov word [ebp - 0x1e], 0x5c
mov word [ebp - 0x1c], 0x3a
mov word [ebp - 0x1a], 0
lea edx, [ebp - 0x1e]
lea eax, [ebp - 0x246]
call fcn.004d4128
cmp eax, dword [ebp - 0x28]
setl byte [ebp - 0x31]
mov word [ebp - 0x1c], 0
cmp byte [ebp - 0x31], 0
je 0x4df516
lea eax, [ebp - 0x246]
mov dx, 0x5c
call fcn.004d40a8
mov ebx, eax
test ebx, ebx
jne 0x4df511
lea eax, [ebp - 0x246]
mov dx, 0x3a
call fcn.004d4080
mov ebx, eax
add ebx, 2
jmp 0x4df51c
lea ebx, [ebp - 0x246]
test ebx, ebx
je 0x4df540
mov edx, 0x4dfbf0
mov eax, ebx
call fcn.0041ea18
test eax, eax
je 0x4df540
mov edx, 0x4dfbf4
mov eax, ebx
call fcn.0041ea18
test eax, eax
jne 0x4df57a
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4df565
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4df565
test al, 0x10
je 0x4df565
mov dword [ebp - 8], 5
jmp 0x4dfba5
mov eax, dword [0x4f1264]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4dfba5
mov eax, 0x410
call fcn.004e5ffc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4df5a4
mov eax, dword [0x4f1264]
mov dword [eax], 8
mov dword [ebp - 8], 3
jmp 0x4dfba5
lea edx, [ebp - 0x246]
mov eax, edi
call fcn.004d4100
mov eax, ebx
call fcn.0040a358
mov esi, eax
lea eax, [ebp - 0x246]
call fcn.004d40f0
cdq
push edx
push eax
mov eax, esi
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov word [edi + eax*2], 0
mov edx, 0x4dfbf0
mov eax, edi
call fcn.004d4114
mov ecx, 0x208
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.004d7c08
test eax, eax
je 0x4df634
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4df61f
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4df61f
test al, 0x10
je 0x4df61f
mov dword [ebp - 8], 5
jmp 0x4dfba5
mov eax, dword [0x4f1264]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4dfba5
mov eax, dword [ebp - 0x14]
call fcn.004d41f4
cmp word [eax], 0x5c
je 0x4df64f
mov edx, 0x4dfbfc
mov eax, dword [ebp - 0x14]
call fcn.004d4114
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.004d4114
mov eax, dword [ebp - 0x14]
call fcn.004d40f0
inc eax
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004e60a8
mov dword [ebp - 0x14], eax
mov dx, 0x5c
mov eax, dword [ebp - 0x14]
call fcn.004d40a8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov word [eax], 0
add dword [ebp - 0x10], 2
movzx ebx, byte [ebp - 0x31]
xor bl, 1
test bl, bl
je 0x4df6a4
mov eax, 0x4dfc00
call fcn.004d5e10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
call fcn.004d40f0
mov esi, eax
add esi, 2
mov eax, dword [ebp - 0x18]
call fcn.004d40f0
add esi, eax
add esi, 2
mov eax, esi
add eax, eax
call fcn.004e5ffc
mov esi, eax
test esi, esi
jne 0x4df6e4
mov eax, dword [0x4f1264]
mov dword [eax], 8
mov dword [ebp - 8], 3
jmp 0x4dfba5
mov edx, 0x4dfc0c
mov eax, esi
call fcn.004d4114
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004d4114
mov edx, 0x4dfc0c
mov eax, esi
call fcn.004d4114
test bl, bl
je 0x4df720
mov edx, 0x4dfc10
mov eax, esi
call fcn.004d4114
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.004d4114
mov eax, esi
call fcn.004e011c
mov edx, 0x4dfc10
mov ecx, 1
mov eax, esi
call fcn.004e6188
mov esi, eax
mov eax, dword [ebp - 0x10]
call fcn.004d40f0
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
je 0x4df75f
mov eax, 0x4dfc14
call fcn.004d5e10
mov dword [ebp - 0xc], eax
jmp 0x4df767
mov eax, 0x4dfc24
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.004e011c
mov edx, 0x4dfc10
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.004e6188
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.004d40f0
mov dword [ebp - 0x2c], eax
mov eax, esi
call fcn.004e7860
mov edx, eax
mov eax, esi
call fcn.004d4100
mov eax, esi
call fcn.004d40f0
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.004d41f4
cmp word [eax], 0x5c
je 0x4df7c1
mov byte [ebp - 0x32], 1
inc dword [ebp - 0x2c]
inc dword [ebp - 0x3c]
jmp 0x4df7c5
mov byte [ebp - 0x32], 0
cmp word [esi], 0
je 0x4df80e
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x4df7ee
cmp eax, 0x104
jbe 0x4df80e
jmp 0x4df7f0
jle 0x4df80e
cmp byte [ebp - 0x32], 0
je 0x4df7ff
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
jmp 0x4df784
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
add esi, 2
jmp 0x4df784
cmp word [esi], 0
jne 0x4df850
cmp byte [ebp - 0x31], 0
je 0x4df83b
mov eax, dword [0x4f1264]
cmp dword [eax], 0
je 0x4df82e
mov eax, dword [0x4f1264]
cmp dword [eax], 2
jne 0x4df846
mov eax, dword [0x4f1264]
mov dword [eax], 0x2331
jmp 0x4df846
mov eax, dword [0x4f1264]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4dfba5
mov edx, esi
mov eax, edi
call fcn.004d4100
cmp byte [ebp - 0x32], 0
je 0x4df868
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
jmp 0x4df872
mov eax, dword [ebp - 0x2c]
add eax, eax
add esi, eax
add esi, 2
cmp byte [ebp - 0x32], 0
je 0x4df882
lea edx, [ebp - 0x1e]
mov eax, edi
call fcn.004d4114
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004d4114
mov eax, edi
call fcn.004e7860
mov edx, eax
mov eax, edi
call fcn.004d4100
mov eax, edi
call fcn.004d40f0
mov dword [ebp - 0x30], eax
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x4df8bf
movzx eax, word [edi]
call fcn.004e775c
test al, al
je 0x4df784
mov dx, 0x2e
mov eax, dword [ebp - 0x10]
call fcn.004d40a8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4df9d0
mov eax, dword [ebp - 0x38]
cmp word [eax + 2], 0
je 0x4df9d0
mov dl, 1
mov eax, edi
call fcn.004d83dc
test al, al
jne 0x4df90b
cmp byte [ebp - 0x31], 0
je 0x4df9b8
mov eax, dword [0x4f1264]
cmp dword [eax], 5
jne 0x4df9b8
lea eax, [ebp - 0x250]
call fcn.004d3fbc
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
call fcn.0041e864
mov eax, dword [ebp - 0x24c]
call fcn.0040a9c0
push eax
lea eax, [ebp - 0x258]
mov edx, edi
call fcn.0040aa28
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
call fcn.0041e864
mov eax, dword [ebp - 0x254]
call fcn.0040a9c0
pop edx
call fcn.0041ea44
test eax, eax
jne 0x4df972
mov dword [ebp - 8], 2
jmp 0x4dfba5
mov edx, 0x4dfc4c
mov eax, dword [ebp - 0x38]
call fcn.0041ea44
test eax, eax
jne 0x4df98f
mov dword [ebp - 8], 2
jmp 0x4dfba5
mov edx, 0x4dfc58
mov eax, dword [ebp - 0x38]
call fcn.0041ea44
test eax, eax
jne 0x4df9ac
mov dword [ebp - 8], 2
jmp 0x4dfba5
mov dword [ebp - 8], 1
jmp 0x4dfba5
mov eax, dword [0x4f1264]
cmp dword [eax], 2
je 0x4df9d0
mov eax, dword [0x4f1264]
cmp dword [eax], 0
jne 0x4df784
mov dx, 0x2a
mov eax, dword [ebp - 0x10]
call fcn.004d4080
test eax, eax
jne 0x4df9f0
mov dx, 0x3f
mov eax, dword [ebp - 0x10]
call fcn.004d4080
test eax, eax
je 0x4dfa05
mov eax, dword [0x4f1264]
mov dword [eax], 0x2331
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4dfba5
mov ebx, dword [ebp - 0xc]
push 0
mov ecx, 0x4dfc64
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.004dfc6c
test eax, eax
je 0x4dfb48
jmp 0x4dfb3e
mov eax, ebx
call fcn.004d40f0
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
cdq
push edx
push eax
mov eax, dword [ebp - 0x3c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x4dfa61
cmp eax, 0x104
ja 0x4dfb35
jmp 0x4dfa67
jg 0x4dfb35
push 1
mov ecx, ebx
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.004dfc6c
test eax, eax
je 0x4dfb1c
mov edx, 0x4dfc58
mov eax, ebx
call fcn.0041ea44
test eax, eax
je 0x4dfa9d
mov edx, 0x4dfc4c
mov eax, ebx
call fcn.0041ea44
test eax, eax
jne 0x4dfaa9
mov dword [ebp - 8], 2
jmp 0x4dfba5
lea eax, [ebp - 0x260]
call fcn.004d3fbc
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
call fcn.0041e864
mov eax, dword [ebp - 0x25c]
call fcn.0040a9c0
push eax
lea eax, [ebp - 0x268]
mov edx, edi
call fcn.0040aa28
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x264]
call fcn.0041e864
mov eax, dword [ebp - 0x264]
call fcn.0040a9c0
pop edx
call fcn.0041ea44
test eax, eax
jne 0x4dfb10
mov dword [ebp - 8], 2
jmp 0x4dfba5
mov dword [ebp - 8], 1
jmp 0x4dfba5
mov eax, dword [0x4f1264]
cmp dword [eax], 2
je 0x4dfb35
mov eax, dword [0x4f1264]
cmp dword [eax], 0
jne 0x4dfb48
jmp 0x4dfb35
add ebx, 2
cmp word [ebx], 0
jne 0x4dfb32
add ebx, 2
cmp word [ebx], 0
jne 0x4dfa26
mov eax, dword [0x4f1264]
cmp dword [eax], 0
je 0x4dfb60
mov eax, dword [0x4f1264]
cmp dword [eax], 2
jne 0x4df784
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.004dfc6c
test eax, eax
je 0x4df784
lea eax, [ebp - 0x24]
push eax
push edi
call sub.kernel32.dll_GetBinaryTypeW
test eax, eax
je 0x4df784
cmp dword [ebp - 0x24], 4
jne 0x4df784
mov dword [ebp - 8], 1
jmp 0x4dfba5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfbca
lea eax, [ebp - 0x268]
mov edx, 8
call fcn.00409ec8
ret