Function at 0x4dd030
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x10], esi
jne 0x4dd04b
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret
push esi
call fcn.004e1e10
add esp, 4
test eax, eax
jne 0x4dd05e
pop edi
pop esi
add esp, 0x3c
ret
push ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
push ebp
mov ecx, 1
xor ebp, ebp
cmp eax, ecx
je 0x4dd2ec
cmp eax, 3
je 0x4dd2ec
cmp eax, 2
jne 0x4dd6cb
mov eax, dword [esp + 0x50]
mov esi, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
jle 0x4dd6cb
lea ebx, [esp + 0x60]
dec eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
jmp 0x4dd0b3
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x4dd215
and eax, 0xdfffffff
mov dword [ebx + 8], eax
mov ecx, dword [ebx]
cmp ecx, edi
je 0x4dd2ca
cmp eax, 0x80000004
jne 0x4dd149
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004e1b70
mov ecx, dword [esp + 0x30]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x4dd2ca
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4dd112
push eax
call fcn.004d71b0
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], 0
jne 0x4dd132
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004dcb40
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x2c]
inc edi
mov dword [esi], eax
mov eax, dword [esp + 0x28]
add esi, 4
cmp edi, eax
jb 0x4dd103
jmp 0x4dd2ca
cmp eax, 0x80000005
jne 0x4dd1b3
lea edx, [esp + 0x20]
push edx
push ecx
call fcn.004e1b70
mov eax, dword [esp + 0x28]
add esp, 8
xor esi, esi
test eax, eax
jbe 0x4dd2ca
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x4dd181
mov eax, dword [eax]
push eax
call fcn.004d71b0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x4dd19d
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.004dcbe0
add esp, 8
mov ebp, eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x24]
inc esi
mov dword [edx], eax
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x4dd170
jmp 0x4dd2ca
push eax
call fcn.004e1c10
mov edi, eax
add esp, 4
test edi, edi
je 0x4dd2ca
mov edx, dword [ebx]
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [edx]
push eax
call fcn.004e1b70
mov esi, dword [esp + 0x48]
mov edx, eax
imul esi, edi
mov ecx, esi
xor eax, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
add esp, 8
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x4dd2c6
mov ecx, dword [esp + 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jle 0x4dd2c6
jmp 0x4dd2c1
cmp eax, 0x80000004
jne 0x4dd24f
mov eax, dword [ebx]
cmp eax, edi
je 0x4dd22d
mov ecx, dword [eax]
push ecx
call fcn.004d71b0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x1c], edi
jne 0x4dd245
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.004dcb40
add esp, 8
mov ebp, eax
mov eax, dword [ebx]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
jmp 0x4dd2ca
cmp eax, 0x80000005
jne 0x4dd289
mov eax, dword [ebx]
cmp eax, edi
je 0x4dd267
mov edx, dword [eax]
push edx
call fcn.004d71b0
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], edi
jne 0x4dd27f
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004dcbe0
add esp, 8
mov ebp, eax
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
jmp 0x4dd2ca
push eax
call fcn.004e1c10
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4dd2ca
mov edx, dword [ebx]
mov ecx, esi
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x4dd2c6
mov ecx, dword [esp + 0x14]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp esi, eax
jle 0x4dd2c6
mov ebp, 1
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
add ebx, 0xc
dec eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
jne 0x4dd0ad
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret
mov eax, dword [esp + 0x50]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], ecx
jle 0x4dd6cb
lea edi, [esp + 0x60]
mov dword [esp + 0x1c], edi
jmp 0x4dd31d
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dd6cb
mov eax, dword [edi + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x4dd539
and eax, 0xdfffffff
mov dword [edi + 8], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x4dd697
cmp eax, 0x80000004
jne 0x4dd3ef
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.004e1b70
mov ecx, dword [esp + 0x38]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x4dd697
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4dd38c
push eax
call fcn.004d71b0
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], 0
jne 0x4dd3cc
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x4dd3b3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.004dcc60
jmp 0x4dd3c7
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call fcn.004dc910
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dd697
mov eax, dword [esp + 0x30]
inc edi
add esi, 4
cmp edi, eax
jb 0x4dd37d
jmp 0x4dd697
cmp eax, 0x80000005
jne 0x4dd48a
lea edx, [esp + 0x34]
push edx
push ecx
call fcn.004e1b70
mov ecx, dword [esp + 0x3c]
add esp, 8
xor edi, edi
test ecx, ecx
jbe 0x4dd697
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4dd427
push eax
call fcn.004d71b0
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], 0
jne 0x4dd467
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x4dd44e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.004dcf10
jmp 0x4dd462
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.004dcaa0
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dd697
mov eax, dword [esp + 0x34]
inc edi
add esi, 4
cmp edi, eax
jb 0x4dd418
jmp 0x4dd697
push eax
call fcn.004e1c10
mov edi, eax
add esp, 4
test edi, edi
je 0x4dd697
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call fcn.004e1b70
mov esi, dword [esp + 0x4c]
mov ebx, eax
imul esi, edi
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x4dd697
mov edi, dword [esp + 0x14]
push 1
push ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push ebp
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dd6c3
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x4dd52a
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x4c]
add eax, 0x34
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
push ebx
push ecx
call fcn.004e1800
add esp, 0x18
cmp dword [esp + 0x38], esi
jge 0x4dd697
jmp 0x4dd692
cmp eax, 0x80000004
jne 0x4dd5a6
mov eax, dword [edi]
test eax, eax
je 0x4dd551
mov edx, dword [eax]
push edx
call fcn.004d71b0
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], 0
jne 0x4dd599
cmp dword [esi], 3
jne 0x4dd584
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call fcn.004dcc60
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ebp, eax
mov dword [ecx], edx
jmp 0x4dd697
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
call fcn.004dc910
add esp, 0xc
mov ebp, eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
mov dword [ecx], edx
jmp 0x4dd697
cmp eax, 0x80000005
jne 0x4dd613
mov eax, dword [edi]
test eax, eax
je 0x4dd5be
mov eax, dword [eax]
push eax
call fcn.004d71b0
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], 0
jne 0x4dd606
cmp dword [esi], 3
jne 0x4dd5f1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
call fcn.004dcf10
mov edx, dword [edi]
mov ebp, eax
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [edx], eax
jmp 0x4dd697
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
call fcn.004dcaa0
add esp, 0xc
mov ebp, eax
mov edx, dword [edi]
mov eax, dword [esp + 0x2c]
mov dword [edx], eax
jmp 0x4dd697
push eax
call fcn.004e1c10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4dd697
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov esi, dword [ecx]
mov ecx, ebx
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x4dd697
mov eax, dword [esp + 0x14]
push 1
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ebp
push ecx
push ebx
push esi
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dd6c3
mov eax, dword [esp + 0x18]
cmp dword [eax], 3
jne 0x4dd68c
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x10]
push ecx
add eax, 0x34
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push esi
push edi
call fcn.004e1800
add esp, 0x18
cmp ebx, dword [esp + 0x3c]
jle 0x4dd697
mov ebp, 1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], edx
jl 0x4dd311
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret