Function at 0x41eca0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6398e0
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov edx, dword [esp + 0x248]
lea eax, [esp + 0xe8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push 0x100
lea ecx, [esp + 0x20c]
push eax
push ecx
push edx
call fcn.005f7850
add esp, 0x20
cmp eax, ebx
jne 0x41f5ed
lea eax, [esp + 0xf8]
push ebx
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], ebx
mov word [esp + 0x78], bx
call fcn.004027e0
xor esi, esi
mov dword [esp + 0x250], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
mov ebp, dword [esp + 0x6c]
mov byte [esp + 0x250], 1
cmp ebp, ebx
jne 0x41ed3b
lea ebp, [esp + 0x70]
mov eax, dword [0x6fca48]
cmp eax, ebx
jne 0x41ed49
mov eax, 0x6fca4c
mov ecx, 0x6cbe58
test ecx, ecx
je 0x41eece
cmp eax, ebx
je 0x41eece
mov edi, dword [esp + 0x260]
cmp edi, ebx
je 0x41eece
cmp ebp, ebx
je 0x41eece
push eax
lea ecx, [esp + 0x60]
call fcn.00401ee0
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x254], 2
call fcn.00401ee0
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x254], 3
call fcn.00401ee0
mov bl, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], bl
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.004027c0
push 0
push 0x6cbe58
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 5
call fcn.004027e0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x50]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x5c]
add ebp, esi
call fcn.00401f10
push eax
call fcn.00609a4e
add ebp, edi
lea esi, [eax + ebp + 4]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x2c], edi
je 0x41ee85
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x50]
call fcn.00401f10
push eax
lea ecx, [esp + 0x18]
call fcn.00401f10
push eax
lea ecx, [esp + 0x64]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00609a4e
add esp, 0x1c
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], bl
call fcn.00401070
lea ecx, [esp + 0x50]
mov byte [esp + 0x250], 3
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 2
call fcn.00401070
lea ecx, [esp + 0x5c]
mov byte [esp + 0x250], 1
call fcn.00401070
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, ebx
je 0x41eef8
push esi
call fcn.00609a4e
lea eax, [esi + eax*2]
add esp, 4
cmp esi, eax
jae 0x41eef4
cmp word [esi], 0x2f
jne 0x41eeed
mov word [esi], 0x5c
add esi, 2
cmp esi, eax
jb 0x41eee2
mov esi, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ecx
mov word [esp + 0x3c], bx
cmp esi, ebx
mov byte [esp + 0x250], 6
mov eax, esi
jne 0x41ef19
lea eax, [esp + 0x30]
mov edx, 0x6c910c
test edx, edx
je 0x41f001
cmp eax, ebx
je 0x41f001
push eax
lea ecx, [esp + 0x60]
call fcn.00401ee0
mov bl, 7
lea ecx, [esp + 0x38]
mov byte [esp + 0x250], bl
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.004027c0
push 0
push 0x6c910c
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 8
call fcn.004027e0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x38], edi
je 0x41efda
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x5c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x40]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], bl
call fcn.00401070
lea ecx, [esp + 0x5c]
mov byte [esp + 0x250], 6
call fcn.00401070
mov ecx, dword [esp + 0x38]
xor ebx, ebx
cmp ecx, ebx
mov eax, ecx
jne 0x41f00b
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00609ba3
add esp, 8
cmp eax, ebx
je 0x41f123
add eax, 2
mov word [eax], bx
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41f030
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f123
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41f04c
lea eax, [esp + 0x3c]
add eax, 6
push 0x5c
push eax
call fcn.0060a17b
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41f123
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41f070
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
call fcn.00401f20
mov eax, dword [esp + 0x14]
mov byte [esp + 0x250], 9
cmp eax, ebx
mov ecx, eax
jne 0x41f09d
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41f0a9
lea eax, [esp + 0x3c]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41f0bf
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004a5e30
add esp, 8
test eax, eax
jne 0x41f0e7
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41f0d9
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004a6010
add esp, 8
test eax, eax
je 0x41f112
add esi, 2
push 0x5c
push esi
call fcn.0060a17b
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x250], 6
call fcn.00401070
cmp esi, ebx
jne 0x41f064
jmp 0x41f123
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 6
call fcn.00401070
push 0x2000
call fcn.0060a459
add esp, 4
cmp eax, ebx
mov dword [esp + 0x68], eax
jne 0x41f178
lea ecx, [esp + 0x38]
mov byte [esp + 0x250], 1
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 0
call fcn.00401070
lea ecx, [esp + 0x6c]
mov dword [esp + 0x250], 0xffffffff
call fcn.00401070
mov eax, 0xffffff98
jmp 0x41f5ed
xor ebp, ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], ebp
mov word [esp + 0x48], bp
mov eax, dword [esp + 0x258]
mov byte [esp + 0x250], 0xa
push eax
call fcn.005f7d00
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x41f58a
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x41f1ba
lea eax, [esp + 0x30]
push 0x6cbe50
push eax
call fcn.0060b21f
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x41f2eb
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x41f1de
lea eax, [esp + 0x30]
mov ecx, 0x6cbee8
test ecx, ecx
je 0x41f2c2
cmp eax, ebp
je 0x41f2c2
push eax
lea ecx, [esp + 0x60]
call fcn.00401ee0
lea ecx, [esp + 0x44]
mov byte [esp + 0x250], 0xb
call fcn.00401070
lea ecx, [esp + 0x20]
call fcn.004027c0
push 0
push 0x6cbee8
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 0xc
call fcn.004027e0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x44], edi
je 0x41f29e
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x5c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x4c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0xb
call fcn.00401070
lea ecx, [esp + 0x5c]
mov byte [esp + 0x250], 0xa
call fcn.00401070
xor ebp, ebp
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x41f2ce
lea eax, [esp + 0x48]
push 0x6cbe50
push eax
call fcn.0060b21f
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x41f58a
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x258]
push 0x2000
push edi
push edx
call fcn.005f8040
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
jl 0x41f340
jle 0x41f340
push esi
push 1
push ebx
push edi
call fcn.0060b0b5
add esp, 0x10
cmp eax, 1
jne 0x41f33d
mov eax, dword [esp + 0x258]
push 0x2000
push edi
push eax
call fcn.005f8040
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
jge 0x41f30b
jmp 0x41f340
or ebx, 0xffffffff
push esi
call fcn.0060b038
lea ecx, [esp + 0xfc]
push str.idmcchandler2.dll
push ecx
call fcn.00609cc0
add esp, 0xc
test eax, eax
jne 0x41f37c
lea edx, [esp + 0xf8]
push str.idmcchandler2_64.dll
push edx
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x41f4e4
mov al, byte [esp + 0x13]
test al, al
je 0x41f392
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x41f39e
lea eax, [esp + 0x48]
jmp 0x41f39e
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x41f39e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebp
mov word [esp + 0x58], bp
call fcn.00401f20
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], bp
lea eax, [esp + 0xf8]
push str.idmcchandler2.dll
push eax
mov byte [esp + 0x258], 0xe
call fcn.00609cc0
add esp, 8
mov ecx, 0x6cbe98
test eax, eax
jne 0x41f3ed
mov ecx, 0x6cbe6c
mov eax, dword [0x6fca20]
cmp eax, ebp
jne 0x41f3fb
mov eax, 0x6fca24
push ebp
push ecx
push eax
push 0x6c900c
lea ecx, [esp + 0x24]
call fcn.00410d70
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov ecx, eax
jne 0x41f41a
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x50]
cmp eax, ebp
jne 0x41f426
lea eax, [esp + 0x54]
push ebp
push ebp
push ecx
push eax
call fcn.004a5a90
add esp, 0x10
test eax, eax
jne 0x41f4c2
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov word [esp + 0x24], bp
mov eax, dword [esp + 0x14]
mov byte [esp + 0x250], 0xf
cmp eax, ebp
jne 0x41f45b
lea eax, [esp + 0x18]
push ebp
push eax
push 0x6cbe68
lea ecx, [esp + 0x2c]
call fcn.0041da80
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov ecx, eax
jne 0x41f479
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x50]
cmp eax, ebp
jne 0x41f485
lea eax, [esp + 0x54]
push ebp
push ebp
push ecx
push eax
call fcn.004a5a90
add esp, 0x10
test eax, eax
je 0x41f4b1
lea ecx, [esp + 0x14]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
call fcn.0041eb10
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 0xe
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0xd
call fcn.00401070
lea ecx, [esp + 0x50]
mov byte [esp + 0x250], 0xa
call fcn.00401070
mov al, byte [esp + 0x13]
test al, al
je 0x41f58e
lea ecx, [esp + 0xf8]
push str..dll
push ecx
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x41f56c
lea edx, [esp + 0xb8]
push 0x40
push edx
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
call fcn.0041eb30
add esp, 0xc
test eax, eax
je 0x41f55f
lea eax, [esp + 0x78]
push 0x40
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f10
push eax
call fcn.0041eb30
add esp, 0xc
test eax, eax
je 0x41f55f
lea ecx, [esp + 0x78]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x41f56c
mov eax, dword [esp + 0x268]
mov dword [eax], 1
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
call fcn.0041eb10
add esp, 8
jmp 0x41f58e
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x258]
push ecx
call fcn.005f8230
push edi
call fcn.00609aba
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x250], 6
call fcn.00401070
lea ecx, [esp + 0x38]
mov byte [esp + 0x250], 1
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 0
call fcn.00401070
lea ecx, [esp + 0x6c]
mov dword [esp + 0x250], 0xffffffff
call fcn.00401070
mov eax, ebx
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret