Function at 0x465160
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a71f7
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x50], ebx
mov esi, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0xd0], edi
mov edx, dword [0x4da734]
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0xd4], 1
call fcn.0040b6b0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
mov byte [esp + 0xe8], 3
push ebx
mov dword [esp + 0x64], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4652b4
call fcn.004012e0
cmp eax, edi
je 0x4652b8
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x46524f
push eax
call fcn.00487c06
add esp, 4
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465283
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46573b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x46573b
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x4652e2
call fcn.004012e0
cmp eax, edi
jl 0x4655ba
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, 0x1000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], edx
call fcn.004686f0
cmp dword [esp + 0x40], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x54], 0x67452301
mov dword [esp + 0x58], 0xefcdab89
mov dword [esp + 0x5c], 0x98badcfe
mov dword [esp + 0x60], 0x10325476
jb 0x4653fa
ja 0x46533a
cmp dword [esp + 0x3c], edi
jbe 0x4653fa
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
sub esi, dword [esp + 0xac]
cmp esi, 0x1000
jbe 0x46535a
mov esi, 0x1000
test edi, edi
je 0x465362
sub ebx, edi
jne 0x46536b
call fcn.00489916
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x4c]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
cmp eax, esi
jne 0x465392
call fcn.004012e0
cmp eax, esi
jne 0x4656bf
mov eax, dword [esp + 0x48]
add dword [esp + 0xac], eax
mov edi, dword [esp + 0x20]
adc dword [esp + 0xb0], esi
cmp edi, esi
je 0x4653b6
mov ebx, dword [esp + 0x24]
mov ecx, ebx
sub ecx, edi
jne 0x4653c3
call fcn.00489916
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
push edi
lea ecx, [esp + 0x58]
call fcn.0045bd90
mov edx, dword [esp + 0xb4]
add esp, 4
cmp edx, dword [esp + 0x40]
jb 0x465342
ja 0x4653f8
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0xac], eax
jb 0x465342
xor edi, edi
xor eax, eax
lea esi, [esp + 0x54]
lea ecx, [esp + 0xac]
mov byte [esp + 0xac], 0
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov dword [esp + 0xb5], eax
mov word [esp + 0xb9], ax
mov byte [esp + 0xbb], al
call fcn.0045be50
xor ebx, ebx
mov edx, dword [0x4da734]
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xd0], 4
movzx ecx, byte [esp + ebx + 0xac]
push ecx
push 0x4c30c8
lea edi, [esp + 0x34]
call fcn.0040e820
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
add esp, 8
push eax
push esi
lea edx, [esp + 0x20]
push edx
call fcn.0043fad0
lea eax, [esi - 0x10]
mov byte [esp + 0xd0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4654aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, 0x10
jl 0x46543a
mov edi, dword [esp + 0x18]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4654d9
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.0040d060
mov edi, dword [esp + 0x18]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.00489547
add esp, 8
test esi, esi
jl 0x465787
cmp esi, dword [edi - 8]
jg 0x465787
mov dword [edi - 0xc], esi
mov word [edi + esi*2], 0
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x465527
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.0040d060
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00489547
add esp, 8
test esi, esi
jl 0x465787
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x465787
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov word [ecx + esi*2], 0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x465640
mov esi, dword [ecx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x465640
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x465635
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x465635
call fcn.0040d0b0
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4655a8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x465640
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4655cb
push eax
call fcn.00487c06
add esp, 4
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4655ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465627
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x46573b
push esi
jmp 0x465735
mov ebx, dword [edi - 0xc]
push edi
mov eax, ecx
call fcn.0040cfc0
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x465659
push 0x80004005
call fcn.00401050
mov ecx, esi
mov eax, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x465686
test dx, dx
je 0x465682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x465686
add eax, 4
add ecx, 4
test dx, dx
jne 0x465660
xor eax, eax
jmp 0x46568b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x465763
mov eax, dword [esp + 0x50]
push eax
push 0x4c30d4
push 0x4c30f4
mov dword [esp + 0x58], 1
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x10
xor esi, esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4656d0
push eax
call fcn.00487c06
add esp, 4
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46572c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x46573b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x50]
push esi
push edi
push ecx
push 0x4c30d4
push 0x4c3120
call fcn.00474370
push eax
call fcn.004743e0
add esp, 0x18
jmp 0x4656bd
push 0x80070057
call fcn.00401050
int3