Function at 0x402bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x714
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x4c], bl
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x4d]
rep stosd dword es:[edi], eax
mov dword [esp + 0x15], eax
mov ecx, 8
mov dword [esp + 0x19], eax
lea edi, [esp + 0x72]
mov dword [esp + 0x1d], eax
mov word [esp + 0x70], bx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x95]
mov byte [esp + 0x94], bl
mov byte [esp + 0x320], bl
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x321]
rep stosd dword es:[edi], eax
mov edi, 0x4068e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x21], eax
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x118]
rep movsb byte es:[edi], byte [esi]
mov edi, str.md5.txt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov byte [esp + 0x14], bl
and ecx, 3
lea edx, [esp + 0x21c]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4068e0
or ecx, 0xffffffff
push 0x4063c8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.UpdatePacket.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x402eaa
push ebp
push 0x28
lea ecx, [esp + 0x9c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x28
je 0x402d82
push 0x4063a4
xor esi, esi
call fcn.00403e50
add esp, 4
jmp 0x402d98
mov ecx, 8
lea esi, [esp + 0x9c]
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
cmp esi, ebx
je 0x402ef8
lea edx, [esp + 0xc0]
push edx
call fcn.00401240
lea eax, [esp + 0x220]
push 0x4063c8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
je 0x402ede
push ebp
push 0x400
lea ecx, [esp + 0x328]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
lea edx, [esp + 0x330]
push esi
lea eax, [esp + 0xd4]
push edx
push eax
call fcn.00401270
add esp, 0x1c
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x320]
cmp esi, 0x400
rep stosd dword es:[edi], eax
je 0x402dd7
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00401320
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor esi, esi
lea edi, [esp + 0x70]
xor eax, eax
mov al, byte [esp + esi + 0x14]
push eax
push str._02x
push edi
call ebp
add esp, 0xc
inc esi
add edi, 2
cmp esi, 0x10
jl 0x402e48
mov ecx, 8
lea esi, [esp + 0x70]
lea edi, [esp + 0x28]
push 0x20
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__memicmp]
add esp, 0xc
test eax, eax
jne 0x402ec4
push 0x406384
mov esi, 1
call fcn.00403e50
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x714
ret
push 0x406374
call fcn.00403e50
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x714
ret
push str.HASH
call fcn.00403e50
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x714
ret
push 0x40634c
call fcn.00403e50
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x714
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x714
ret