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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x614831
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov edx, dword [esp + 0x254]
lea eax, [esp + 0xf4]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push 0x100
lea ecx, [esp + 0x218]
push eax
push ecx
push edx
call fcn.005d31d0
add esp, 0x20
cmp eax, ebx
jne 0x41cba5
lea eax, [esp + 0x104]
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.00402ce0
xor esi, esi
mov dword [esp + 0x25c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
mov ebp, dword [esp + 0x6c]
mov byte [esp + 0x25c], 1
cmp ebp, ebx
jne 0x41c20b
lea ebp, [esp + 0x70]
mov eax, dword [0x6f6320]
cmp eax, ebx
jne 0x41c219
mov eax, 0x6f6324
mov ecx, 0x6c79f4
test ecx, ecx
je 0x41c393
cmp eax, ebx
je 0x41c393
mov edi, dword [esp + 0x26c]
cmp edi, ebx
je 0x41c393
cmp ebp, ebx
je 0x41c393
push eax
lea ecx, [esp + 0x48]
call fcn.0040e5b0
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x260], 2
call fcn.0040e5b0
push ebp
lea ecx, [esp + 0x64]
mov byte [esp + 0x260], 3
call fcn.0040e5b0
mov bl, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], bl
call fcn.00401070
push 0x6c79f4
lea ecx, [esp + 0x30]
call fcn.00402330
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x60]
mov byte [esp + 0x25c], 5
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x44]
add ebp, esi
call fcn.004023b0
push eax
call fcn.005e519b
add ebp, edi
lea esi, [eax + ebp + 4]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x20], edi
je 0x41c34a
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 + 0x60]
call fcn.004023b0
push eax
lea ecx, [esp + 0x18]
call fcn.004023b0
push eax
lea ecx, [esp + 0x4c]
call fcn.004023b0
push eax
lea ecx, [esp + 0x38]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005e519b
add esp, 0x1c
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], bl
call fcn.00401070
lea ecx, [esp + 0x60]
mov byte [esp + 0x25c], 3
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 2
call fcn.00401070
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], 1
call fcn.00401070
mov esi, dword [esp + 0x20]
xor ebx, ebx
cmp esi, ebx
je 0x41c3bd
push esi
call fcn.005e519b
lea eax, [esi + eax*2]
add esp, 4
cmp esi, eax
jae 0x41c3b9
cmp word [esi], 0x2f
jne 0x41c3b2
mov word [esi], 0x5c
add esi, 2
cmp esi, eax
jb 0x41c3a7
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ecx
mov word [esp + 0x3c], bx
cmp esi, ebx
mov byte [esp + 0x25c], 6
mov eax, esi
jne 0x41c3de
lea eax, [esp + 0x24]
mov edx, 0x6c5098
test edx, edx
je 0x41c4bb
cmp eax, ebx
je 0x41c4bb
push eax
lea ecx, [esp + 0x30]
call fcn.0040e5b0
mov bl, 7
lea ecx, [esp + 0x38]
mov byte [esp + 0x25c], bl
call fcn.00401070
push 0x6c5098
lea ecx, [esp + 0x48]
call fcn.00402330
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 8
call fcn.004023b0
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x38], edi
je 0x41c494
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 + 0x2c]
call fcn.004023b0
push eax
lea ecx, [esp + 0x48]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x40]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], bl
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 6
call fcn.00401070
mov ecx, dword [esp + 0x38]
xor ebx, ebx
cmp ecx, ebx
mov eax, ecx
jne 0x41c4c5
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.005e50eb
add esp, 8
cmp eax, ebx
je 0x41c5dd
add eax, 2
mov word [eax], bx
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41c4ea
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c5dd
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41c506
lea eax, [esp + 0x3c]
add eax, 6
push 0x5c
push eax
call fcn.005e569b
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41c5dd
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41c52a
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.004023c0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x25c], 9
cmp eax, ebx
mov ecx, eax
jne 0x41c557
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x41c563
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 0x41c579
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004960a0
add esp, 8
test eax, eax
jne 0x41c5a1
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41c593
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00496280
add esp, 8
test eax, eax
je 0x41c5cc
add esi, 2
push 0x5c
push esi
call fcn.005e569b
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x25c], 6
call fcn.00401070
cmp esi, ebx
jne 0x41c51e
jmp 0x41c5dd
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 6
call fcn.00401070
push 0x2000
call fcn.005e5a7e
add esp, 4
cmp eax, ebx
mov dword [esp + 0x5c], eax
jne 0x41c632
lea ecx, [esp + 0x38]
mov byte [esp + 0x25c], 1
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], 0
call fcn.00401070
lea ecx, [esp + 0x6c]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00401070
mov eax, 0xffffff98
jmp 0x41cba5
xor edi, edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
mov word [esp + 0x54], di
mov eax, dword [esp + 0x264]
mov byte [esp + 0x25c], 0xa
push eax
call fcn.005d3680
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x41cb42
mov eax, dword [esp + 0x20]
cmp eax, edi
jne 0x41c674
lea eax, [esp + 0x24]
push 0x6c79ec
push eax
call fcn.005e683f
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x41c79a
mov eax, dword [esp + 0x20]
cmp eax, edi
jne 0x41c698
lea eax, [esp + 0x24]
mov ecx, 0x6c7a84
test ecx, ecx
je 0x41c771
cmp eax, edi
je 0x41c771
push eax
lea ecx, [esp + 0x30]
call fcn.0040e5b0
lea ecx, [esp + 0x50]
mov byte [esp + 0x25c], 0xb
call fcn.00401070
push 0x6c7a84
lea ecx, [esp + 0x48]
call fcn.00402330
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 0xc
call fcn.004023b0
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x50], edi
je 0x41c74d
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 + 0x2c]
call fcn.004023b0
push eax
lea ecx, [esp + 0x48]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x58]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x60]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], 0xb
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 0xa
call fcn.00401070
xor edi, edi
mov eax, dword [esp + 0x50]
cmp eax, edi
jne 0x41c77d
lea eax, [esp + 0x54]
push 0x6c79ec
push eax
call fcn.005e683f
mov esi, eax
add esp, 8
cmp esi, edi
je 0x41cb42
mov byte [esp + 0x13], 1
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x264]
push 0x2000
push ebp
push edx
call fcn.005d39c0
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jl 0x41c7ef
jle 0x41c7ef
push esi
push 1
push ebx
push ebp
call fcn.005e66d5
add esp, 0x10
cmp eax, 1
jne 0x41c7ec
mov eax, dword [esp + 0x264]
push 0x2000
push ebp
push eax
call fcn.005d39c0
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jge 0x41c7ba
jmp 0x41c7ef
or ebx, 0xffffffff
push esi
call fcn.005e6658
lea ecx, [esp + 0x108]
push str.idmcchandler2.dll
push ecx
call fcn.005e5290
add esp, 0xc
test eax, eax
jne 0x41c82b
lea edx, [esp + 0x104]
push str.idmcchandler2_64.dll
push edx
call fcn.005e5290
add esp, 8
test eax, eax
je 0x41ca96
mov al, byte [esp + 0x13]
test al, al
je 0x41c841
mov eax, dword [esp + 0x50]
cmp eax, edi
jne 0x41c84d
lea eax, [esp + 0x54]
jmp 0x41c84d
mov eax, dword [esp + 0x20]
cmp eax, edi
jne 0x41c84d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], edi
mov word [esp + 0x68], di
call fcn.004023c0
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov word [esp + 0x18], di
lea eax, [esp + 0x104]
push str.idmcchandler2.dll
push eax
mov byte [esp + 0x264], 0xe
call fcn.005e5290
add esp, 8
mov edi, 0x6c7a34
test eax, eax
jne 0x41c89c
mov edi, 0x6c7a08
mov esi, dword [0x6f62f8]
test esi, esi
jne 0x41c8ab
mov esi, 0x6f62fc
mov ecx, 0x6c5124
test ecx, ecx
je 0x41c9d3
test esi, esi
je 0x41c9d3
test edi, edi
je 0x41c9d3
push ecx
lea ecx, [esp + 0x7c]
call fcn.00402330
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], 0xf
call fcn.0040e5b0
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x10
call fcn.0040e5b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0x11
call fcn.00401070
mov esi, dword [esp + 0x80]
lea ecx, [esp + 0x44]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x41c99c
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 + 0x44]
call fcn.004023b0
push eax
lea ecx, [esp + 0x30]
call fcn.004023b0
push eax
lea ecx, [esp + 0x80]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005e519b
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], 0x10
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 0xf
call fcn.00401070
lea ecx, [esp + 0x78]
mov byte [esp + 0x25c], 0xe
call fcn.00401070
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41c9df
lea eax, [esp + 0x18]
push 0
push 0
push eax
lea ecx, [esp + 0x6c]
call fcn.004023b0
push eax
call fcn.00495d00
add esp, 0x10
test eax, eax
jne 0x41ca74
lea ecx, [esp + 0x2c]
call fcn.0041cbc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0x12
call fcn.004023b0
push eax
push 0x6c7a04
lea ecx, [esp + 0x34]
call fcn.0041afe0
push 0
push 0
lea ecx, [esp + 0x34]
call fcn.004023b0
push eax
lea ecx, [esp + 0x6c]
call fcn.004023b0
push eax
call fcn.00495d00
add esp, 0x10
test eax, eax
je 0x41ca63
lea ecx, [esp + 0x14]
call fcn.004023b0
push eax
lea ecx, [esp + 0x30]
call fcn.004023b0
push eax
call fcn.0041bfe0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x25c], 0xe
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0xd
call fcn.00401070
lea ecx, [esp + 0x60]
mov byte [esp + 0x25c], 0xa
call fcn.00401070
mov al, byte [esp + 0x13]
test al, al
je 0x41cb46
lea edx, [esp + 0x104]
push str..dll
push edx
call fcn.005e5290
add esp, 8
test eax, eax
je 0x41cb24
lea eax, [esp + 0xc4]
push 0x40
push eax
lea ecx, [esp + 0x28]
call fcn.004023b0
push eax
call fcn.0041c000
add esp, 0xc
test eax, eax
je 0x41cb17
lea ecx, [esp + 0x84]
push 0x40
push ecx
lea ecx, [esp + 0x58]
call fcn.004023b0
push eax
call fcn.0041c000
add esp, 0xc
test eax, eax
je 0x41cb17
lea edx, [esp + 0x84]
lea eax, [esp + 0xc4]
push edx
push eax
call fcn.005e5520
add esp, 8
test eax, eax
je 0x41cb24
mov ecx, dword [esp + 0x274]
mov dword [ecx], 1
lea ecx, [esp + 0x20]
call fcn.004023b0
push eax
lea ecx, [esp + 0x54]
call fcn.004023b0
push eax
call fcn.0041bfe0
add esp, 8
jmp 0x41cb46
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x264]
push edx
call fcn.005d3bb0
push ebp
call fcn.005e5002
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x25c], 6
call fcn.00401070
lea ecx, [esp + 0x38]
mov byte [esp + 0x25c], 1
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0x25c], 0
call fcn.00401070
lea ecx, [esp + 0x6c]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00401070
mov eax, ebx
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret