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

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465c62
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x48c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x50], esi
lea ecx, [ebp - 0x2c]
call fcn.00428dde
cmp dword [eax + 0x14], 8
jb 0x428f34
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], eax
call fcn.00401952
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x428f85
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x42926f
push 0xffffffffffffffff
jmp 0x42926d
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42924d
cmp dword [ebp - 0x68], 0
jne 0x42924d
cmp eax, dword [edi + 8]
jb 0x42924d
sub eax, dword [edi + 8]
push 0
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x428fdd
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 2
jmp 0x42925d
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push 0
push eax
push 0x18
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42923b
cmp dword [ebp - 0x6c], 0x18
jne 0x42923b
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
call esi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
call esi
push dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push 8
push eax
push edi
call fcn.00431023
add esp, 0xc
test eax, eax
je 0x429059
mov esi, dword [ebp - 0x50]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 4
jmp 0x42925d
cmp dword [ebp - 0x3c], 2
je 0x429077
mov esi, dword [ebp - 0x50]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 5
jmp 0x42925d
push dword [ebp - 0x38]
call fcn.0042a361
push dword [ebp - 0x34]
mov dword [ebp - 0x60], eax
call fcn.0042a361
push dword [ebp - 0x30]
mov esi, eax
mov dword [ebp - 0x58], esi
call fcn.0042a361
add esp, 0xc
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x60]
push dword [ebp - 0x38]
push eax
call fcn.0042928f
test al, al
je 0x4291eb
push dword [ebp - 0x34]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x64]
call fcn.0042928f
test al, al
je 0x4291e8
push dword [ebp - 0x30]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0042928f
test al, al
je 0x4291e8
push dword [edi + 0xc]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x80], 1
push dword [edi + 0x10]
mov byte [ebp - 0x7c], 1
call fcn.004292ca
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x58]
push esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x64], eax
call fcn.004292ca
push dword [ebp - 0x38]
mov edi, dword [ebp - 0x60]
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0xa8]
call fcn.004292ca
push dword [ebp - 0x64]
lea ecx, [ebp - 0x80]
push dword [ebp - 0x78]
push edx
push dword [ebp - 0x58]
push dword [eax + 4]
push dword [eax]
call fcn.004292ee
test al, al
jne 0x429194
mov edi, dword [ebp - 0x50]
xor eax, eax
cmp dword [ebp - 0x5c], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x42916f
push dword [ebp - 0x5c]
call fcn.0042a35c
pop ecx
test esi, esi
je 0x42917a
push esi
call fcn.0042a35c
pop ecx
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x429188
push eax
call fcn.0042a35c
pop ecx
mov dword [ebp - 4], 7
jmp 0x429224
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x8c], 0
and dword [ebp - 0x84], 0
mov dword [edx], eax
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x90]
mov dword [edx + 0xc], eax
mov byte [edx + 0x10], 1
call fcn.0040b7e0
test esi, esi
je 0x4291df
push esi
call fcn.0042a35c
pop ecx
mov dword [ebp - 4], 8
jmp 0x429224
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x50]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x429203
push eax
call fcn.0042a35c
pop ecx
test esi, esi
je 0x42920e
push esi
call fcn.0042a35c
pop ecx
cmp dword [ebp - 0x60], 0
je 0x42921d
push dword [ebp - 0x60]
call fcn.0042a35c
pop ecx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x429236
cmp dword [ebp - 0x4c], 0
je 0x429236
push dword [ebp - 0x4c]
call eax
mov eax, dword [ebp - 0x50]
jmp 0x429271
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 3
jmp 0x42925d
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x42926f
cmp dword [ebp - 0x4c], 0
je 0x42926f
push dword [ebp - 0x4c]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00429be3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret