Function at 0x41b000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x48f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x33c], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x348], edi
cmp ecx, 0xffffffff
jl 0x41b7b3
mov eax, dword [edi]
mov dword [ebp - 0x334], eax
cmp ecx, dword [eax + 4]
jge 0x41b7b3
cmp dword [edi + 4], 0xffffffff
je 0x41b098
test eax, eax
je 0x41b098
mov esi, dword [eax + 0x7c]
test esi, esi
je 0x41b098
mov eax, dword [esi]
test eax, eax
je 0x41b064
push eax
call fcn.004431bd
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x41b078
lea ecx, [esi + 4]
call fcn.00419850
push esi
mov dword [esi + 0x40], 0
call fcn.004431bd
mov eax, dword [ebp - 0x334]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [edi + 0x238]
jne 0x41b0cd
cmp ecx, 0xffffffff
je 0x41b0d2
lea esi, [edi + 8]
mov ecx, 0x8c
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0xffffffff
jne 0x41b128
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebx], eax
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebx + 0x20c], eax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x224], eax
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
mov eax, dword [ebp + 8]
cmp dword [ecx + 0x10], eax
jle 0x41b16d
mov esi, ecx
test esi, esi
je 0x41b16a
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x28]
sub esp, 0x10
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x10], 0
push 0
push 0
push eax
call fcn.0041a420
xor ecx, ecx
add esp, 0x1c
test eax, eax
mov eax, dword [ebp + 8]
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [edi]
cmp dword [ecx + 0x10], eax
jge 0x41b1ca
mov ebx, dword [ebp + 8]
mov esi, ecx
test esi, esi
je 0x41b1bf
cmp dword [esi + 0x18], 0
je 0x41b1bf
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x41b1bf
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.0041a420
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebx
jl 0x41b172
mov ebx, dword [ebp - 0x33c]
sub esp, 0x10
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x3a8]
push 0x104
push eax
push 0
call fcn.0041a420
mov ecx, dword [edi]
lea eax, [ebp - 0x338]
add esp, 0x1c
lea edx, [ebp - 0x340]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.0041a870
add esp, 8
test eax, eax
je 0x41b223
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x41b24f
cmp byte [ecx + 1], 0
je 0x41b301
mov eax, dword [ecx + 0xc]
add eax, dword [ebp - 0x32c]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41b258
mov eax, dword [ebp - 0x32c]
mov dword [ecx + 0x1c], eax
push dword [ebp - 0x338]
call fcn.004403c2
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x32c], eax
mov esi, dword [ecx]
cmp byte [esi], 0
je 0x41b29e
push 0
lea ecx, [ebp - 0x334]
push ecx
push dword [ebp - 0x338]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b296
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x334]
jmp 0x41b2eb
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x338]
add eax, edx
mov dword [ebp - 0x330], ecx
sub dword [ebp - 0x330], edx
cmp eax, ecx
mov eax, dword [ebp - 0x330]
cmovbe eax, dword [ebp - 0x338]
push eax
mov dword [ebp - 0x330], eax
mov eax, dword [esi + 0x14]
add eax, edx
push eax
push dword [ebp - 0x32c]
call fcn.004429f0
mov eax, dword [ebp - 0x330]
add esp, 0xc
add dword [esi + 0x1c], eax
cmp eax, dword [ebp - 0x338]
je 0x41b319
push dword [ebp - 0x32c]
call fcn.004401c0
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
push 0x104
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [ebp - 0x318]
movzx eax, word [esi]
test ax, ax
je 0x41b370
cmp word [esi + 2], 0x3a
jne 0x41b35c
add esi, 4
jmp 0x41b348
cmp eax, 0x5c
jne 0x41b366
add esi, 2
jmp 0x41b348
cmp eax, 0x2f
jne 0x41b370
add esi, 2
jmp 0x41b348
push 0x47a10c
push esi
call fcn.0044111b
add esp, 8
test eax, eax
je 0x41b387
lea esi, [eax + 8]
jmp 0x41b348
push 0x47a118
push esi
call fcn.0044111b
add esp, 8
test eax, eax
je 0x41b39e
lea esi, [eax + 8]
jmp 0x41b348
push 0x47a124
push esi
call fcn.0044111b
add esp, 8
test eax, eax
je 0x41b3b5
lea esi, [eax + 8]
jmp 0x41b348
push str._.._
push esi
call fcn.0044111b
add esp, 8
test eax, eax
je 0x41b3cf
lea esi, [eax + 8]
jmp 0x41b348
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi + 2], ax
test ax, ax
jne 0x41b3d3
mov edx, dword [ebp - 0x374]
mov eax, edx
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [ebp - 0x330], eax
not cl
mov eax, dword [ebp - 0x3a8]
and cl, 1
shr eax, 8
mov byte [ebp - 0x33c], 0
mov byte [ebp - 0x334], 0
mov byte [ebp - 0x340], 1
test eax, eax
je 0x41b434
cmp eax, 7
je 0x41b434
cmp eax, 0xb
je 0x41b434
cmp eax, 0xe
jne 0x41b470
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [ebp - 0x33c], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [ebp - 0x334], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [ebp - 0x330], al
and edx, 0xffffff01
jmp 0x41b476
mov edx, dword [ebp - 0x340]
xor eax, eax
mov dword [ebx + 0x20c], 0
cmp byte [ebp - 0x330], al
je 0x41b499
mov dword [ebx + 0x20c], 0x10
mov eax, 0x10
test dl, dl
je 0x41b4a6
or eax, 0x20
mov dword [ebx + 0x20c], eax
cmp byte [ebp - 0x33c], 0
je 0x41b4b8
or eax, 2
mov dword [ebx + 0x20c], eax
test cl, cl
je 0x41b4c5
or eax, 1
mov dword [ebx + 0x20c], eax
cmp byte [ebp - 0x334], 0
je 0x41b4d7
or eax, 4
mov dword [ebx + 0x20c], eax
mov edx, dword [ebp - 0x398]
mov esi, 0x7bc
mov eax, dword [ebp - 0x390]
mov ecx, edx
mov dword [ebx + 0x228], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebx + 0x22c], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [ebp - 0x328], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [ebp - 0x322], cx
mov word [ebp - 0x326], ax
mov ax, dx
shr ax, 0xb
mov word [ebp - 0x320], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [ebp - 0x31e], ax
xor eax, eax
mov word [ebp - 0x31a], ax
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x328]
mov word [ebp - 0x31c], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x350]
mov dword [ebp - 0x34c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [ebp - 0x358]
xor esi, esi
cmp dword [ebp - 0x338], 4
mov eax, dword [ebp - 0x354]
mov dword [ebx + 0x210], ecx
mov dword [ebx + 0x218], ecx
mov dword [ebx + 0x220], ecx
mov ecx, dword [ebp - 0x32c]
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x224], eax
jbe 0x41b77a
mov byte [ebp - 0x32e], 0
nop word [eax + eax]
movzx eax, byte [esi + ecx]
mov byte [ebp - 0x330], al
movzx eax, byte [esi + ecx + 1]
mov ecx, 0x47a13c
mov byte [ebp - 0x32f], al
lea eax, [ebp - 0x330]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41b630
test dl, dl
je 0x41b62c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41b630
add eax, 2
add ecx, 2
test dl, dl
jne 0x41b610
xor eax, eax
jmp 0x41b635
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b659
mov ecx, dword [ebp - 0x32c]
movzx eax, byte [esi + ecx + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [ebp - 0x338]
jb 0x41b5f0
jmp 0x41b77a
mov eax, dword [ebp - 0x32c]
mov al, byte [esi + eax + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x340], edx
test al, 1
je 0x41b6d8
mov edx, dword [ebp - 0x32c]
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x220], eax
adc edx, 0x19db1de
mov dword [ebx + 0x224], edx
mov edx, dword [ebp - 0x340]
test dl, dl
je 0x41b725
mov edx, dword [ebp - 0x32c]
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x210], eax
adc edx, 0x19db1de
mov dword [ebx + 0x214], edx
cmp byte [ebp - 0x334], 0
je 0x41b774
mov edx, dword [ebp - 0x32c]
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x218], eax
adc edx, 0x19db1de
mov dword [ebx + 0x21c], edx
mov ecx, dword [ebp - 0x32c]
push ecx
call fcn.004401c0
mov eax, dword [ebp - 0x348]
add edi, 8
mov ecx, 0x8c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x238], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x10000
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043fc58
mov esp, ebp
pop ebp
ret 8