Function at 0x41d770
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4024
call fcn.0042c4d0
mov eax, dword [esp + 0x403c]
push ebx
push ebp
mov ebp, dword [esp + 0x403c]
push esi
push edi
or esi, 0xffffffff
push eax
push ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
call fcn.0041d570
mov ebx, dword [esp + 0x4050]
add esp, 8
test ebp, ebp
mov dword [ebx], eax
je 0x41dfa5
cmp eax, esi
je 0x41dfa5
test eax, eax
je 0x41dfa5
mov ecx, dword [esp + 0x403c]
mov edi, dword [ecx]
test edi, edi
je 0x41d801
cmp edi, esi
je 0x41d801
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.0042e480
add esp, 4
mov edx, dword [ebx]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, dword [esp + 0x403c]
cmp dword [ecx], 0xffffffff
jne 0x41d830
inc esi
jmp 0x41d836
add esi, 0x4001
push esi
call fcn.0044f2f1
mov ecx, dword [esp + 0x403c]
mov edx, dword [esp + 0x4040]
add esp, 4
lea ebx, [eax + 0x4000]
mov dword [ecx], eax
mov ecx, dword [edx]
cmp ecx, 0xffffffff
jne 0x41d85e
mov ebx, eax
mov edx, dword [0x47ff08]
test edx, edx
je 0x41d8b4
mov esi, 0x47f9f8
mov edi, ebp
mov cl, byte [edi]
mov al, cl
cmp cl, byte [esi]
jne 0x41d893
test al, al
je 0x41d88f
mov cl, byte [edi + 1]
mov al, cl
cmp cl, byte [esi + 1]
jne 0x41d893
add edi, 2
add esi, 2
test al, al
jne 0x41d86f
xor eax, eax
jmp 0x41d898
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d8b4
mov ecx, dword [esp + 0x10]
mov esi, edx
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41d8d5
mov ecx, dword [esp + 0x4048]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push 0
mov edx, dword [ecx]
push eax
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov byte [ebx + esi], 0xa
mov eax, dword [esp + 0x403c]
cmp dword [eax], 0xffffffff
jne 0x41d8f0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4024
ret
mov ecx, dword [esp + 0x10]
xor ebp, ebp
test ecx, ecx
jle 0x41df4a
mov edx, dword [esp + 0x4038]
mov esi, dword [esp + 0x14]
mov al, byte [ebx + ebp]
cmp al, 0x5b
jne 0x41da01
mov eax, dword [esp + 0x403c]
cmp dword [eax], 0
jne 0x41d990
mov dword [esp + 0x18], esi
inc esi
lea edi, [ecx + 0x4000]
mov dword [esp + 0x28], esi
cmp esi, edi
jge 0x41d957
mov eax, dword [edx]
mov dl, byte [ebx + ebp + 1]
inc ebp
mov byte [eax + esi], dl
mov edx, dword [esp + 0x4038]
mov eax, dword [edx]
cmp byte [eax + esi], 0x5d
je 0x41d957
cmp byte [ebx + ebp], 0xa
je 0x41d957
inc esi
cmp esi, edi
jl 0x41d935
mov eax, dword [edx]
add eax, esi
cmp byte [eax], 0x5d
jne 0x41d965
mov byte [eax], 0
jmp 0x41d969
mov esi, dword [esp + 0x18]
cmp byte [ebx + ebp], 0xa
je 0x41da15
inc ebp
cmp ebp, ecx
jge 0x41da15
cmp byte [ebx + ebp], 0xa
je 0x41da15
inc ebp
cmp ebp, ecx
jl 0x41d97c
jmp 0x41da15
lea edi, [esp + 0x34]
mov dword [esp + 0x18], ebp
dec edi
inc ebp
cmp ebp, ecx
jge 0x41d9a9
mov dl, byte [edi + 1]
mov al, byte [ebx + ebp]
inc edi
cmp dl, al
je 0x41d999
movsx eax, byte [ebx + ebp]
movsx edx, byte [edi]
lea ecx, [eax - 0x20]
cmp edx, ecx
jne 0x41d9d1
push eax
call fcn.0042d9d1
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x41d999
mov edx, dword [esp + 0x4038]
jmp 0x41d9dc
mov edx, dword [esp + 0x4038]
mov ecx, dword [esp + 0x10]
mov al, byte [ebx + ebp]
inc ebp
cmp al, 0x5d
jne 0x41d9e9
cmp byte [edi], 0
je 0x41da2e
cmp byte [ebx + ebp], 0xa
je 0x41da15
inc ebp
cmp ebp, ecx
jge 0x41da15
cmp byte [ebx + ebp], 0xa
je 0x41da15
inc ebp
cmp ebp, ecx
jl 0x41d9f4
jmp 0x41da15
cmp al, 0xa
je 0x41da15
inc ebp
cmp ebp, ecx
jge 0x41da15
cmp byte [ebx + ebp], 0xa
je 0x41da15
inc ebp
cmp ebp, ecx
jl 0x41da0a
inc ebp
cmp ebp, ecx
jl 0x41d909
mov eax, dword [esp + 0x403c]
mov dword [esp + 0x14], esi
jmp 0x41df5c
mov al, byte [ebx + ebp]
mov dword [esp + 0x14], esi
cmp al, 0xa
je 0x41da49
inc ebp
cmp ebp, ecx
jge 0x41da49
cmp byte [ebx + ebp], 0xa
je 0x41da49
inc ebp
cmp ebp, ecx
jl 0x41da3e
mov eax, dword [esp + 0x4040]
mov edi, dword [eax]
test edi, edi
jne 0x41db1b
inc ebp
cmp ebp, ecx
jge 0x41dae8
cmp byte [ebx + ebp], 0x5b
je 0x41dae8
cmp ebp, ecx
mov edi, esi
jge 0x41da9d
mov al, byte [ebx + ebp]
cmp al, 0x5b
je 0x41da9d
inc esi
cmp esi, 0x3ffd
jge 0x41da9d
mov edx, dword [edx]
inc ebp
mov byte [edx + esi], al
mov edx, dword [esp + 0x4038]
mov eax, dword [edx]
mov al, byte [eax + esi]
cmp al, 0x3d
je 0x41da9d
cmp al, 0xa
je 0x41da9d
cmp ebp, ecx
jl 0x41da6f
mov eax, dword [edx]
add eax, esi
cmp byte [eax], 0x3d
jne 0x41dac2
mov byte [eax], 0
mov al, byte [ebx + ebp]
cmp al, 0xa
je 0x41dadf
inc ebp
cmp ebp, ecx
jge 0x41dadf
cmp byte [ebx + ebp], 0xa
je 0x41dadf
inc ebp
cmp ebp, ecx
jl 0x41dab5
jmp 0x41dadf
mov al, byte [ebx + ebp]
mov esi, edi
cmp al, 0x5b
je 0x41dae8
cmp al, 0xa
je 0x41dadf
inc ebp
cmp ebp, ecx
jge 0x41dadf
cmp byte [ebx + ebp], 0xa
je 0x41dadf
inc ebp
cmp ebp, ecx
jl 0x41dad4
inc ebp
cmp ebp, ecx
jl 0x41da63
mov eax, dword [edx]
inc esi
pop edi
mov byte [eax + esi], 0
mov eax, dword [edx]
mov byte [eax + esi + 1], 0
mov eax, dword [esp + 0x4038]
mov edx, dword [edx]
pop esi
mov dword [eax], edx
mov edx, dword [esp + 0x4038]
pop ebp
mov eax, ecx
mov dword [edx], 0
pop ebx
add esp, 0x4024
ret
cmp edi, 0xffffffff
jne 0x41db6d
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, ecx
lea edx, [ebx + eax]
mov eax, dword [esp + 0x403c]
mov dword [eax], edx
jge 0x41db55
mov al, byte [ebx + ebp]
cmp al, 0x5b
je 0x41db55
cmp al, 0xa
je 0x41db50
inc ebp
cmp ebp, ecx
jge 0x41db50
cmp byte [ebx + ebp], 0xa
je 0x41db50
inc ebp
cmp ebp, ecx
jl 0x41db45
inc ebp
cmp ebp, ecx
jl 0x41db35
mov edx, dword [esp + 0x4040]
add ebx, ebp
pop edi
pop esi
mov dword [edx], ebx
pop ebp
mov eax, ecx
pop ebx
add esp, 0x4024
ret
cmp edi, 0xfffffffe
jne 0x41dd8d
lea edi, [ebp + 1]
mov eax, edi
cmp eax, ecx
jge 0x41db8a
cmp byte [eax + ebx], 0x5b
je 0x41db8a
inc eax
cmp eax, ecx
jl 0x41db7f
sub eax, ebp
mov dword [esp + 0x20], eax
add eax, 2
push eax
call fcn.0044f2f1
mov edx, dword [esp + 0x14]
mov ebp, edi
mov edi, dword [esp + 0x28]
add esp, 4
cmp ebp, edx
mov dword [esp + 0x1c], eax
jge 0x41dd26
cmp byte [ebx + ebp], 0x5b
je 0x41dd26
cmp ebp, edx
mov dword [esp + 0x18], esi
jge 0x41dc00
mov al, byte [ebx + ebp]
cmp al, 0x5b
je 0x41dbfc
mov ecx, dword [esp + 0x20]
inc esi
add ecx, 0xfffffffd
cmp esi, ecx
jge 0x41dbfc
mov ecx, dword [esp + 0x4038]
inc ebp
mov ecx, dword [ecx]
mov byte [ecx + esi], al
mov eax, dword [esp + 0x4038]
mov ecx, dword [eax]
mov al, byte [ecx + esi]
cmp al, 0x3d
je 0x41dbfc
cmp al, 0xa
je 0x41dbfc
cmp ebp, edx
jl 0x41dbc4
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x4038]
mov ecx, dword [eax]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi]
cmp cl, 0x3d
jne 0x41dcf4
cmp ebp, edx
mov byte [eax], 0
jge 0x41dcea
mov eax, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, 0xfffffff6
sub eax, edx
mov dword [esp + 0x28], eax
inc edi
lea eax, [edx - 3]
cmp edi, eax
mov dword [esp + 0x24], edi
jge 0x41dcea
mov al, byte [ebx + ebp]
mov ecx, dword [esp + 0x1c]
inc ebp
cmp al, 0xd
mov byte [ecx + edi], al
je 0x41dcee
cmp al, 0xa
je 0x41dcee
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add ecx, eax
cmp edi, ecx
jl 0x41dce2
push eax
call fcn.0044f2f1
mov esi, dword [esp + 0x403c]
mov dword [esp + 0x30], eax
add esp, 4
cmp dword [esi], 0
je 0x41dd6a
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov ecx, eax
mov edx, ecx
add eax, 0x10000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
and ecx, 3
add edx, 0x10000
rep movsb byte es:[edi], byte [esi]
push eax
mov dword [esp + 0x1c], edx
call fcn.0044f31a
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x1c], ecx
cmp ebp, edx
jl 0x41dc38
mov ecx, dword [esp + 0x1c]
mov byte [ecx + edi], 0
jmp 0x41dd02
cmp cl, 0xa
jne 0x41dcfa
dec ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov al, byte [ebx + ebp]
cmp al, 0x5b
je 0x41dd26
cmp al, 0xa
je 0x41dd1d
inc ebp
cmp ebp, edx
jge 0x41dd1d
cmp byte [ebx + ebp], 0xa
je 0x41dd1d
inc ebp
cmp ebp, edx
jl 0x41dd12
inc ebp
cmp ebp, edx
jl 0x41dbb2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4038]
inc edi
inc esi
mov byte [eax + edi], 0
mov byte [eax + edi + 1], 0
mov edi, dword [ecx]
mov byte [edi + esi], 0
mov edi, dword [ecx]
mov byte [edi + esi + 1], 0
mov esi, dword [esp + 0x403c]
mov ecx, dword [ecx]
pop edi
mov dword [esi], ecx
mov ecx, dword [esp + 0x403c]
pop esi
pop ebp
mov dword [ecx], eax
mov eax, edx
pop ebx
add esp, 0x4024
ret
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044f31a
mov eax, dword [esi]
push eax
call fcn.0044f31a
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4024
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.0042e480
mov al, byte [ebx + ebp + 1]
add esp, 4
inc ebp
cmp al, 0x5b
je 0x41def4
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jge 0x41def4
lea esi, [esp + 0x34]
mov dword [esp + 0x18], edi
dec esi
inc edi
cmp edi, 0x3ffd
jge 0x41de34
mov al, byte [esi + 1]
inc esi
test al, al
je 0x41de34
mov cl, byte [ebx + ebp]
cmp cl, al
je 0x41de11
movsx edx, al
movsx ecx, cl
add edx, 0x20
cmp ecx, edx
jne 0x41de34
push ecx
call fcn.0042d9d1
add esp, 4
test eax, eax
je 0x41de34
mov al, byte [ebx + ebp]
cmp al, 0x3d
jne 0x41de1d
cmp byte [esi], 0
je 0x41de34
cmp al, 0xa
je 0x41de34
cmp al, 0xd
je 0x41de34
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jge 0x41def4
jmp 0x41dddf
mov ecx, dword [esp + 0x10]
cmp ebp, ecx
jge 0x41def4
mov al, byte [ebx + ebp]
cmp al, 0x3d
jne 0x41de4c
cmp byte [esi], 0
je 0x41de76
mov edi, dword [esp + 0x18]
cmp al, 0xa
je 0x41de64
inc ebp
cmp ebp, ecx
jge 0x41de64
cmp byte [ebx + ebp], 0xa
je 0x41de64
inc ebp
cmp ebp, ecx
jl 0x41de59
mov al, byte [ebx + ebp + 1]
inc ebp
cmp al, 0x5b
je 0x41def4
jmp 0x41ddcc
inc ebp
mov eax, ebp
cmp eax, ecx
jge 0x41de93
mov cl, byte [ebx + eax]
cmp cl, 0xd
je 0x41de93
cmp cl, 0xa
je 0x41de93
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jl 0x41de7d
mov edx, dword [esp + 0x403c]
lea ecx, [ebx + ebp]
mov dword [edx], ecx
mov cl, byte [ebx + eax]
cmp cl, 0xa
je 0x41ded3
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jge 0x41dedc
cmp byte [ebx + eax], 0xa
je 0x41ded7
inc eax
cmp eax, ecx
jl 0x41deb0
add ebx, eax
mov eax, dword [esp + 0x4040]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, ecx
pop ebx
add esp, 0x4024
ret
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jge 0x41dedc
inc eax
add ebx, eax
mov eax, dword [esp + 0x4040]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, ecx
pop ebx
add esp, 0x4024
ret
mov edx, dword [esp + 0x403c]
mov ecx, dword [esp + 0x4040]
add ebp, ebx
mov dword [edx], ebp
mov dword [ecx], ebp
mov eax, dword [edx]
cmp eax, ebx
jb 0x41df3b
mov cl, byte [eax - 1]
lea ebp, [eax - 1]
cmp cl, 0xa
jne 0x41df3b
mov cl, byte [eax - 2]
lea esi, [eax - 2]
cmp cl, 0xa
jne 0x41df28
mov dword [edx], ebp
jmp 0x41df35
cmp cl, 0xd
jne 0x41df3b
cmp byte [eax - 3], 0xa
jne 0x41df3b
mov dword [edx], esi
mov eax, dword [edx]
cmp eax, ebx
jae 0x41df0e
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4024
ret
mov eax, dword [esp + 0x403c]
mov edx, dword [esp + 0x4038]
mov esi, dword [esp + 0x14]
cmp dword [eax], 0
jne 0x41df85
test esi, esi
jge 0x41df67
xor esi, esi
mov edi, dword [edx]
mov byte [edi + esi], 0
mov edi, dword [edx]
mov byte [edi + esi + 1], 0
mov edx, dword [edx]
pop edi
pop esi
mov dword [eax], edx
pop ebp
mov eax, ecx
pop ebx
add esp, 0x4024
ret
mov dword [eax], 0
mov eax, dword [esp + 0x4040]
pop edi
pop esi
mov dword [eax], 0
pop ebp
mov eax, ecx
pop ebx
add esp, 0x4024
ret
mov ecx, dword [esp + 0x4038]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 0x4024
ret