Function at 0x41c060
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58a920
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov ebp, vtable.CList_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
mov dword [esp + 0x64], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0xa
push ebx
push 0x2c
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x94], 1
mov edi, dword [esp + 0xa0]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push edi
mov dword [esp + 0x3c], edi
call fcn.00409dc0
lea ecx, [esp + 0x38]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0040fbd0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c118
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 4
cmp dword [esp + 0x70], esi
jge 0x41c174
mov byte [esp + 0x88], bl
mov dword [esp + 0x64], ebp
lea ecx, [esp + 0x64]
call fcn.004090e0
mov dword [esp + 0x88], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c15b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov ecx, dword [esp + 0x90]
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x70], esi
mov dword [esp + 0x34], eax
jl 0x41c468
lea ecx, [ecx]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x68]
call fcn.00428ee0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], 2
call fcn.00428ee0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], 3
call fcn.00428ee0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], 4
call fcn.00428ee0
mov byte [esp + 0x88], 5
mov eax, dword [esp + 0x20]
push eax
call fcn.00474e28
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
add esp, 4
cmp dword [edx - 0xc], ebx
je 0x41c5ce
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], ebx
je 0x41c5ce
mov ecx, dword [esi - 0xc]
cmp ecx, ebx
je 0x41c5ce
test cl, 1
jne 0x41c5ce
add eax, eax
cmp eax, ecx
jne 0x41c5ce
push edx
call fcn.00474e3e
add esp, 4
cmp edx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jg 0x41c272
jl 0x41c25c
cmp eax, ebx
jae 0x41c272
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
sub ecx, eax
sbb esi, edx
mov eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
push ebx
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x18]
cmp ecx, dword [edx - 0xc]
jge 0x41c2bb
jmp 0x41c2a0
push 0x46
lea ecx, [esp + 0x20]
call fcn.0040fea0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x18]
cmp ecx, dword [edx - 0xc]
jl 0x41c2a0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x44]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
mov byte [esp + 0x94], 7
call fcn.00409dc0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0055ef00
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x54]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00409dc0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0055ef00
add esp, 8
xor esi, esi
cmp dword [esp + 0x58], ebx
jbe 0x41c393
mov edx, dword [esp + 0x90]
push ebx
lea eax, [esp + 0x34]
push eax
push 1
lea ecx, [esp + 0x23]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
je 0x41c4c7
cmp esi, dword [esp + 0x48]
jae 0x41c4bd
mov eax, dword [esp + 0x58]
cmp esi, eax
jae 0x41c4bd
mov cl, byte [esp + 0x17]
and cl, byte [esi + ebp]
cmp cl, byte [edi + esi]
jne 0x41c4c7
add esi, 1
cmp esi, eax
jb 0x41c339
jmp 0x41c39b
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
cmp edi, ebx
je 0x41c3ac
push edi
call fcn.00473394
mov ebp, dword [esp + 0x48]
add esp, 4
cmp ebp, ebx
je 0x41c3b9
push ebp
call fcn.00473394
add esp, 4
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c3e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x70], 4
mov edi, dword [esp + 0x28]
jge 0x41c1a0
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], vtable.CList_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
call fcn.004090e0
mov dword [esp + 0x88], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41c4a4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push 0x80070057
call fcn.0040a460
cmp edi, ebx
je 0x41c4d8
push edi
call fcn.00473394
mov ebp, dword [esp + 0x48]
add esp, 4
cmp ebp, ebx
je 0x41c4e5
push ebp
call fcn.00473394
add esp, 4
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c50d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c55d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], vtable.CList_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
call fcn.004090e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c15b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41c15b
lea eax, [esi - 0x10]
mov byte [esp + 0x88], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c5f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c61a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c66a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], bl
mov dword [esp + 0x64], vtable.CList_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__.0
jmp 0x41c12e