Function at 0x442e0f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x88
push ebx
push esi
mov esi, dword [ebp + 0x70]
xor ebx, ebx
cmp esi, ebx
je 0x442e2c
cmp word [esi], bx
jne 0x442e2c
xor esi, esi
mov eax, dword [ebp + 0x74]
and eax, 0x10000
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
je 0x442e4f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], eax
lea ecx, [ebp - 4]
call fcn.0042e430
cmp esi, ebx
je 0x442e8d
jmp 0x442e88
push 0xd
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x70]
push eax
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x3c], ebx
call fcn.004149d8
mov esi, eax
mov eax, dword [ebp + 0x70]
add esp, 0xc
cmp word [eax], bx
je 0x442e88
push eax
lea ecx, [ebp - 4]
call fcn.0040ac60
cmp word [esi], bx
jne 0x442e5d
mov eax, dword [ebp + 4]
push ebx
push 0x80
push 3
push ebx
neg eax
push 7
sbb eax, eax
and eax, dword [ebp - 4]
push 0x80000000
push dword [ebp + 0x68]
lea ecx, [ebp + 0x5c]
mov dword [ebp - 0x20], eax
mov dword [ebp + 0x5c], ebx
call fcn.00404073
cmp dword [ebp + 0x5c], ebx
jne 0x442ec5
or ebx, 0xffffffff
jmp 0x443673
push edi
push 0xe0000
lea ecx, [ebp + 0x10]
call fcn.0042e1e2
mov esi, dword [ebp + 0x10]
push ebx
lea eax, [ebp + 0x7c]
push eax
mov edi, 0x200
push edi
push esi
push dword [ebp + 0x5c]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x7c], edi
jb 0x443656
cmp dword [esi + 0x1b4], 0x46424246
jne 0x443656
cmp word [esi + 0x1fe], 0xaa55
jne 0x443656
movzx eax, word [esi + 0x1b2]
inc eax
mov dword [ebp + 0x70], eax
shl eax, 9
cdq
push ebx
push edx
push eax
push dword [ebp + 0x5c]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
call fcn.004298d4
add esp, 0x10
cmp dword [ebp + 0x40], eax
jne 0x443656
cmp dword [ebp + 0x44], edx
jne 0x443656
push ebx
lea eax, [ebp + 0x7c]
push eax
push edi
push esi
push dword [ebp + 0x5c]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x7c], edi
jb 0x443656
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x28], eax
movzx eax, word [esi + 0xa]
cdq
push 8
pop ecx
add eax, ecx
mov dword [ebp + 0x38], eax
movzx eax, word [esi]
adc edx, ebx
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x3c], edx
cdq
mov dword [ebp + 0x48], eax
movzx eax, word [esi + 8]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x74]
and eax, 0x80000
push ebx
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x74]
push ebx
push 0x8600
push dword [ebp + 0x5c]
and eax, 0x60000
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 8], eax
mov byte [ebp + 0x73], bl
call fcn.004298d4
add esp, 0x10
cmp eax, 0x8600
jne 0x443056
cmp edx, ebx
jne 0x443056
push ebx
lea eax, [ebp + 0x7c]
push eax
push edi
push esi
push dword [ebp + 0x5c]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443056
cmp dword [ebp + 0x7c], edi
jne 0x443056
mov al, byte [esi + 0x1f8]
mov dl, byte [esi + 0x1b4]
mov cl, al
and al, 0x1f
movzx eax, al
mov byte [ebp + 0x73], dl
cdq
mov dword [ebp + 0x20], eax
movzx eax, byte [ebp + 0x73]
mov dword [ebp + 0x24], edx
mov edx, 0x46424246
and cl, 0xe0
cmp eax, edx
jne 0x443056
cmp cl, bl
mov dword [ebp + 0x58], 0x10000
jne 0x443056
mov eax, dword [esi + 0x1f0]
mov dword [ebp + 0x38], eax
mov eax, dword [esi + 0x1f4]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + 0x1e8]
mov dword [ebp + 0x40], eax
mov eax, dword [esi + 0x1ec]
mov dword [ebp + 0x44], eax
movzx eax, byte [ebp + 0x73]
cmp eax, 0x46424246
je 0x4430e5
mov ecx, dword [ebp + 0x2c]
cmp ecx, dword [ebp + 0x24]
jb 0x4430e5
mov eax, dword [ebp + 0x28]
ja 0x443077
cmp eax, dword [ebp + 0x20]
jbe 0x4430e5
cmp dword [ebp + 0x1c], ebx
je 0x4430d9
push ebx
push edi
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
call fcn.00471360
push ebx
push edx
push eax
push dword [ebp + 0x5c]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edx
call fcn.004298d4
add esp, 0x10
cmp dword [ebp + 0x30], eax
jne 0x4430e5
cmp dword [ebp + 0x34], edx
jne 0x4430e5
push ebx
lea eax, [ebp + 0x7c]
push eax
push edi
push esi
push dword [ebp + 0x5c]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4430e5
cmp dword [ebp + 0x7c], edi
jne 0x4430e5
cmp byte [esi], 0xeb
jne 0x4430e5
cmp word [esi + 0x1fe], 0xaa55
jne 0x4430e5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp + 0x20]
sbb ecx, dword [ebp + 0x24]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], ecx
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x6c]
lea eax, [eax + eax*4]
shl eax, 9
add eax, 0xc64
push eax
call fcn.0042e20b
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x6c]
mov ecx, dword [ecx]
lea eax, [eax + eax*4]
shl eax, 0xa
lea eax, [eax + ecx + 0x200]
and eax, 0xfffffe00
cmp dword [ebp + 0x4c], ebx
mov dword [ebp + 0x34], eax
jl 0x44313b
jg 0x443126
cmp dword [ebp + 0x48], 0x44
jbe 0x44313b
mov eax, dword [ebp + 0x54]
shl eax, 0xa
push eax
lea ecx, [ebp + 0x10]
call fcn.0042e20b
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x50], esi
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x54]
push ebx
push edi
push dword [ebp + 0x4c]
add ecx, eax
push eax
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x70], esi
call fcn.00471360
push ebx
push edx
push eax
push dword [ebp + 0x5c]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
call fcn.004298d4
add esp, 0x10
cmp dword [ebp + 0x20], eax
jne 0x443667
cmp dword [ebp + 0x24], edx
jne 0x443667
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x74]
and eax, 0x60000
or eax, ebx
je 0x443191
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 8], ebx
je 0x4431fd
cmp dword [ebp + 0xc], ebx
jne 0x4431fd
xor eax, eax
cmp dword [ebp + 0x44], ebx
ja 0x4431a7
cmp dword [ebp + 0x40], ebx
jbe 0x4431e1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x44]
push dword [ebp + 0x40]
call fcn.00471360
push edx
push eax
push dword [ebp + 0x3c]
mov eax, dword [ebp + 0x58]
push dword [ebp + 0x38]
or eax, 0xff00
push str._ueext_
push eax
push str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
push dword [ebp + 0x54]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
mov ecx, dword [ebp + 0x54]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x54], eax
mov word [eax], bx
mov eax, dword [ebp + 0x74]
and eax, 0x40000
or eax, ebx
jne 0x44366a
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x4c], eax
jmp 0x44325c
push ebx
lea eax, [ebp + 0x7c]
push eax
push edi
push dword [ebp + 0x34]
mov dword [ebp + 0x7c], ebx
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x7c], edi
jne 0x443667
push edi
push dword [ebp + 0x34]
push dword [ebp + 0x70]
call fcn.00470580
add esp, 0xc
add dword [ebp + 0x70], 0x1fe
mov eax, dword [ebp + 0x50]
mov al, byte [eax]
cmp al, bl
je 0x443261
mov ecx, dword [ebp + 0x50]
movzx eax, al
lea eax, [eax + ecx + 2]
cmp eax, dword [ebp + 0x70]
ja 0x443256
mov dword [ebp + 0x50], eax
jmp 0x443239
inc dword [ebp + 0x4c]
mov eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 0x2c]
jl 0x443205
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x3c], 0xfde9
mov dword [ebp + 0x58], 8
mov dword [ebp + 0x50], esi
mov ecx, dword [ebp + 0x50]
cmp ecx, dword [ebp + 0x24]
jae 0x44366a
movzx ax, byte [ecx]
add ecx, 0xe
inc eax
inc eax
movzx eax, ax
lea edx, [eax - 0xe]
mov dword [ebp + 0x70], edx
mov edx, dword [ebp + 0x50]
add dword [ebp + 0x50], eax
mov al, byte [ebp + 0x74]
cmp al, bl
mov dword [ebp + 0x4c], edx
je 0x4432ab
test byte [edx + 1], al
je 0x443278
mov eax, dword [ebp + 0x34]
mov word [eax], bx
mov eax, dword [ebp + 0x70]
cmp eax, ebx
mov dword [ebp + 0x2c], ebx
jle 0x443306
cmp byte [ecx], bl
je 0x443306
push 0x800
push dword [ebp + 0x34]
add eax, ecx
mov dl, byte [eax]
push 0xffffffffffffffff
push ecx
push dword [ebp + 0x58]
mov dword [ebp + 0x44], eax
mov byte [eax], bl
movzx eax, word [ebp + 0x3c]
push eax
mov byte [ebp + 0x73], dl
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov cl, byte [ebp + 0x73]
mov edx, dword [ebp + 0x44]
movzx eax, al
cmp eax, ebx
mov byte [edx], cl
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x2c], eax
mov word [ecx + eax*2], bx
jg 0x443306
cmp dword [ebp + 0x58], ebx
jne 0x4434a7
cmp dword [ebp + 4], ebx
je 0x44333a
mov dword [ebp + 0x70], ebx
jle 0x443278
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x70]
push dword [eax + ecx*4]
push dword [ebp + 0x34]
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x44333a
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 4]
jl 0x443314
jmp 0x443278
cmp dword [ebp + 0xc], ebx
jne 0x4434b2
cmp dword [ebp + 8], ebx
jne 0x443351
cmp dword [ebp + 0x1c], ebx
je 0x443417
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx + 6]
cmp eax, 0x8000
jb 0x443278
test ax, 0x1ff
jne 0x443278
test byte [ecx + 1], 0x7c
je 0x44337b
cmp dword [ebp + 8], ebx
jne 0x443417
cmp dword [ebp + 0x2c], 4
jle 0x44339b
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x34]
lea eax, [eax + ecx*2 - 0xa]
push eax
push str..iso
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x443417
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + 2]
mov ecx, edi
mul ecx
push ebx
push edx
push eax
push dword [ebp + 0x5c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.004298d4
add esp, 0x10
cmp dword [ebp - 0x1c], eax
jne 0x443278
cmp dword [ebp - 0x18], edx
jne 0x443278
push ebx
lea eax, [ebp + 0x7c]
push eax
mov eax, dword [ebp + 0x34]
push edi
add eax, 0x400
push eax
push dword [ebp + 0x5c]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443278
cmp dword [ebp + 0x7c], edi
jne 0x443278
mov eax, dword [ebp + 0x34]
add eax, 0x400
cmp byte [eax], 0xeb
jne 0x443278
cmp word [eax + 0x1fe], 0xaa55
jne 0x443278
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax + 0xa]
xor ecx, ecx
push ebx
add eax, 0xb6109100
push 0x989680
adc ecx, 2
push ecx
push eax
call fcn.00471360
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [ebp - 0x14], bx
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
mov edi, dword [ebp + 0x54]
push eax
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x4c]
push dword [eax + 6]
push dword [eax + 2]
movzx eax, byte [eax + 1]
push dword [ebp + 0x34]
push eax
push str.0x_02X___s__0x_lX__lu__u__02u__02u__02u__02u__02u_r_n
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
add esp, 0x30
mov dword [ebp + 0x54], eax
mov edi, 0x200
jmp 0x443278
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x3c], ebx
jmp 0x443275
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ecx + 2]
mov edx, edi
mul edx
mov dword [ebp + 0x74], eax
mov eax, dword [ecx + 6]
mov cl, byte [ecx + 1]
and cl, 1
neg cl
mov dword [ebp + 0x78], edx
sbb ecx, ecx
and ecx, 2
add ecx, 0x1fe
cmp eax, ebx
mov dword [ebp + 0x70], ecx
jbe 0x44366a
cmp dword [ebp + 0x18], ebx
jl 0x4434f5
jg 0x4434ef
cmp dword [ebp + 0x14], eax
jbe 0x4434f5
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], ebx
sub eax, dword [ebp + 0x14]
cmp ebx, 0xf
mov dword [ebp + 0x1c], eax
jb 0x443511
ja 0x443667
cmp eax, 0xfffffde0
jae 0x443667
mov eax, dword [ebp + 0x70]
cdq
push edx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004711e0
mov esi, eax
shl eax, 9
cdq
add dword [ebp + 0x74], eax
push ebx
adc dword [ebp + 0x78], edx
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x5c]
call fcn.004298d4
add esp, 0x10
cmp dword [ebp + 0x74], eax
jne 0x443667
cmp dword [ebp + 0x78], edx
jne 0x443667
imul esi, dword [ebp + 0x70]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
sub eax, esi
lea esi, [eax + ecx]
mov dword [ebp + 0x58], eax
lea eax, [esi + 0x1ff]
mov ecx, 0xfffffe00
and eax, ecx
add esi, 0x20f
and esi, ecx
mov ecx, dword [ebp + 0x6c]
mov dword [ebp + 0x78], eax
lea eax, [esi + 0x200]
push eax
call fcn.0042e092
cmp eax, ebx
mov dword [ebp + 0x70], eax
je 0x443667
add esi, eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x3c], esi
mov esi, dword [eax]
mov eax, dword [ebp + 0x4c]
add esi, edi
and esi, 0xfffffe00
mov dword [esi], ebx
test byte [eax + 1], 0x3d
je 0x4435e7
mov edi, dword [ebp + 0x78]
push ebx
lea eax, [ebp + 0x7c]
push eax
push edi
push esi
push dword [ebp + 0x5c]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443667
cmp dword [ebp + 0x7c], edi
jb 0x443667
mov eax, dword [ebp + 0x6c]
sub esi, dword [eax]
add esi, dword [ebp + 0x58]
mov dword [eax + 8], esi
jmp 0x443638
cmp dword [ebp + 0x78], ebx
jle 0x443638
mov esi, dword [ebp + 0x70]
push ebx
lea eax, [ebp + 0x7c]
push eax
push edi
push dword [ebp + 0x3c]
mov dword [ebp + 0x7c], ebx
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x7c], edi
jne 0x443667
mov ecx, dword [ebp + 0x58]
mov eax, 0x1fe
sub eax, ecx
push eax
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x3c]
add eax, ecx
push eax
push esi
call fcn.00470580
sub dword [ebp + 0x78], 0x1fe
add esi, dword [ebp + 0x7c]
add esp, 0xc
cmp dword [ebp + 0x78], ebx
mov dword [ebp + 0x58], ebx
jg 0x4435ef
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 0x1c]
add edx, dword [eax]
push 0x10
add edx, ecx
push ebx
push edx
mov dword [eax + 4], ecx
call fcn.00470340
add esp, 0xc
jmp 0x44366a
mov esi, dword [ebp + 0x6c]
push 0x64
mov ecx, esi
call fcn.0042e20b
mov eax, dword [esi]
mov word [eax], bx
or ebx, 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00428a48
pop edi
lea ecx, [ebp + 0x5c]
call fcn.00402abc
lea ecx, [ebp - 4]
call fcn.00428a48
pop esi
mov eax, ebx
pop ebx
add ebp, 0x60
leave
ret