Function at 0x438200
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa0]
cmp dword [esp + 0xb0], 1
sbb ebp, ebp
and ebp, 0x10
add ebp, 0x1e
mov eax, dword [esp + 0xac]
test eax, eax
je 0x438270
mov eax, dword [esp + 0xac]
cmp ebp, dword [eax]
jbe 0x438270
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x4385c0
mov edx, dword [esp + 0xb4]
mov dword [edx], 0x13
mov dword [edx + 4], 0
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x4386d0
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0xb0]
test edx, edx
jne 0x4382e0
mov edi, 0x44f685
mov ecx, 4
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4382f0
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x4385c0
mov ecx, dword [esp + 0xb4]
mov dword [ecx], 0x13
mov dword [ecx + 4], 0
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 0x44f680
mov ecx, 4
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4382a7
lea edx, [eax + 4]
mov dword [esp + 0x7c], edx
mov esi, dword [esp + 0xb0]
test esi, esi
je 0x438500
mov word [ebx], 0
xor eax, eax
mov al, byte [edx + 1]
shl eax, 8
xor ecx, ecx
mov cl, byte [edx]
add eax, ecx
lea ecx, [edx + 2]
mov dword [esp + 0x7c], ecx
mov word [ebx + 2], ax
xor eax, eax
mov al, byte [edx + 3]
shl eax, 8
xor ecx, ecx
mov cl, byte [edx + 2]
add eax, ecx
mov word [ebx + 4], ax
xor eax, eax
mov al, byte [edx + 5]
shl eax, 8
xor ecx, ecx
mov cl, byte [edx + 4]
add eax, ecx
mov word [ebx + 6], ax
xor eax, eax
mov al, byte [edx + 7]
shl eax, 8
xor ecx, ecx
mov cl, byte [edx + 6]
lea edi, [eax + ecx]
xor eax, eax
mov al, byte [edx + 9]
shl eax, 8
mov cl, byte [edx + 8]
and ecx, 0xff
mov esi, ecx
add eax, esi
add edx, 0xa
mov dword [esp + 0x7c], edx
and eax, 0xffff
mov dword [esp + 0x1c], eax
mov esi, edi
and esi, 0xffff
lea edx, [esp + 0x58]
mov ecx, 9
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x1c]
sar eax, 9
add eax, 0x50
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
sar eax, 5
and eax, 0xf
dec eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
and eax, 0x1f
mov dword [esp + 0x64], eax
mov eax, esi
sar eax, 0xb
mov dword [esp + 0x60], eax
mov eax, esi
sar eax, 5
and eax, 0x3f
mov dword [esp + 0x5c], eax
add esi, esi
and esi, 0x3e
mov dword [esp + 0x58], esi
mov dword [esp], edx
call sub.msvcrt.dll_mktime
mov dword [ebx + 8], eax
lea edi, [esp + 0x7c]
mov dword [esp], edi
call fcn.004381d0
mov dword [ebx + 0xc], eax
mov dword [esp], edi
call fcn.004381d0
mov dword [ebx + 0x10], eax
mov dword [esp], edi
call fcn.004381d0
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dl, byte [eax + 1]
shl edx, 8
mov cl, byte [eax]
and ecx, 0xff
mov esi, ecx
add esi, edx
lea edx, [eax + 2]
mov dword [esp + 0x7c], edx
mov word [ebx + 0x1c], si
xor ecx, ecx
mov cl, byte [eax + 3]
shl ecx, 8
xor edx, edx
mov dl, byte [eax + 2]
add edx, ecx
lea ecx, [eax + 4]
mov dword [esp + 0x7c], ecx
mov word [ebx + 0x24], dx
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x4385d0
mov word [ebx + 0x2c], 0
mov word [ebx + 0x2e], 0
mov word [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
xor ecx, ecx
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov eax, esi
and eax, 0xffff
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0xffff
add eax, dword [esp + 0x18]
add ecx, eax
add ebp, ecx
mov eax, dword [esp + 0xac]
test eax, eax
je 0x438520
mov ecx, dword [esp + 0xac]
cmp ebp, dword [ecx]
jbe 0x438520
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4385c0
mov eax, dword [esp + 0xb4]
mov dword [eax], 0x13
mov dword [eax + 4], 0
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov dl, byte [eax + 5]
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, edx
lea edx, [eax + 6]
mov dword [esp + 0x7c], edx
mov word [ebx], cx
jmp 0x43830b
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x438580
test si, si
jne 0x438640
test dx, dx
jne 0x438670
mov edx, dword [ebx + 0x2c]
test dx, dx
jne 0x4386a0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0xa8]
mov dword [edx], eax
mov eax, dword [esp + 0xac]
test eax, eax
je 0x438710
mov ecx, dword [esp + 0xac]
sub dword [ecx], ebp
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test si, si
jne 0x438750
test dx, dx
jne 0x438786
mov edx, dword [ebx + 0x2c]
test dx, dx
je 0x438556
and edx, 0xffff
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
xor ecx, ecx
mov eax, dword [esp + 0xa4]
call fcn.00437850
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x438556
nop
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov dl, byte [eax + 5]
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + 4]
add edx, ecx
mov word [ebx + 0x2c], dx
xor edx, edx
mov dl, byte [eax + 7]
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + 6]
add edx, ecx
mov word [ebx + 0x2e], dx
xor edx, edx
mov dl, byte [eax + 9]
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + 8]
add edx, ecx
add eax, 0xa
mov dword [esp + 0x7c], eax
mov word [ebx + 0x30], dx
mov dword [esp], edi
call fcn.004381d0
mov dword [ebx + 0x34], eax
mov dword [esp], edi
call fcn.004381d0
mov dword [ebx + 0x38], eax
mov esi, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x2c]
mov ecx, eax
and ecx, 0xffff
jmp 0x438482
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
mov ecx, 1
mov edx, dword [esp + 0x18]
mov eax, edi
call fcn.00437c20
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4385c0
mov edx, dword [ebx + 0x24]
jmp 0x438534
and edx, 0xffff
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
xor ecx, ecx
mov eax, edi
call fcn.00437c20
mov dword [ebx + 0x20], eax
test eax, eax
jne 0x43853d
jmp 0x4385c0
and edx, 0xffff
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
xor ecx, ecx
mov eax, edi
call fcn.00437c20
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x438549
jmp 0x4385c0
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
lea esi, [esp + 0x2a]
mov dword [esp], esi
call sub.msvcrt.dll_fread
cmp ebp, eax
ja 0x438720
mov dword [esp + 0x7c], esi
mov eax, esi
jmp 0x43828c
xor eax, eax
jmp 0x43825f
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x4385c0
mov edx, dword [esp + 0xb4]
mov dword [edx], 5
mov dword [edx + 4], eax
mov eax, 0xffffffff
jmp 0x43825f
mov edx, esi
and edx, 0xffff
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
mov ecx, 1
mov eax, dword [esp + 0xa4]
call fcn.00437850
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4385c0
mov edx, dword [ebx + 0x24]
jmp 0x438589
and edx, 0xffff
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
xor ecx, ecx
mov eax, dword [esp + 0xa4]
call fcn.00437850
mov dword [ebx + 0x20], eax
test eax, eax
jne 0x438592
jmp 0x4385c0