Function at 0x100059e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11bc
call fcn.1001a150
mov eax, dword [0x10029494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, str.ENTERING________________________________________________EHDownLoadFilesToFolder
mov esi, 0x1002c2c8
mov dword [ebp - 0x1024], edi
call fcn.10001830
push edi
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
push str.getfile.txt
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push str.getfile.php
call sym.AdminServ.dll_EHDownLoadFile
add esp, 8
test al, al
jne 0x10005a7e
mov edx, str.ERROR__________retVal__EHDownLoadFile________________FAILED
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHDownLoadFilesToFolder
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005b04
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x1008]
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHDownLoadFilesToFolder
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea ecx, [ebp - 0x1014]
push ecx
push esi
push edi
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1014], esi
call ebx
mov esi, eax
mov dword [ebp - 0x1018], esi
cmp esi, 0xffffffff
jne 0x10005b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005b43
or esi, esi
mov dword [ebp - 0x1014], esi
jmp 0x10005b49
mov esi, dword [ebp - 0x1018]
push 2
xor eax, eax
lea edx, [ebp - 0x100c]
push edx
push eax
push edi
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
call ebx
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
jne 0x10005b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005b80
or eax, 0xffffffff
or ecx, eax
jmp 0x10005b8c
mov eax, dword [ebp - 0x1010]
mov ecx, dword [ebp - 0x100c]
sub eax, esi
sbb ecx, dword [ebp - 0x1014]
mov esi, eax
xor eax, eax
push eax
mov dword [ebp - 0x1014], ecx
lea ecx, [ebp - 0x100c]
push ecx
push eax
push edi
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
call ebx
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
jne 0x10005bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esi + 1]
push edx
call fcn.1000ba7a
add esp, 4
push 0
mov ebx, eax
lea eax, [ebp - 0x101c]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x101c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005c56
push str.ERROR______________ReadFileFALSE___FileName__
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x1008]
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHDownLoadFilesToFolder
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp esi, dword [ebp - 0x101c]
jne 0x10005c68
cmp dword [ebp - 0x1014], ecx
je 0x10005cc9
push str.ERROR______________fileSize_dwbytesRead___FileName__
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x1008]
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHDownLoadFilesToFolder
call fcn.10001830
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1020]
push ecx
push 0x100223fc
mov byte [esi + ebx], 0
push ebx
xor esi, esi
call fcn.1000d77d
add esp, 0xc
test eax, eax
je 0x10005d12
nop
lea edx, [ebp - 0x1020]
push edx
push 0x100223fc
push 0
mov dword [ebp + esi*4 - 0x11b8], eax
call fcn.1000d77d
add esp, 0xc
inc esi
test eax, eax
jne 0x10005cf0
mov eax, esi
xor esi, esi
mov dword [ebp - 0x1014], eax
test eax, eax
jle 0x10005dcd
mov edx, dword [ebp + esi*4 - 0x11b8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005d30
sub eax, edi
inc eax
push eax
push edx
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call fcn.1000dabf
mov edx, dword [ebp - 0x1024]
add esp, 0x14
push edx
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
push 0x10021118
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x1008]
push edx
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.1000c903
add esp, 0xc
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x1008]
push edx
call sym.AdminServ.dll_EHDownLoadFile
add esp, 8
test al, al
je 0x10005df8
inc esi
cmp esi, dword [ebp - 0x1014]
jl 0x10005d24
push ebx
call fcn.1000bd44
add esp, 4
mov edx, str.LEAVING________________________________________________EHDownLoadFilesToFolder
mov esi, 0x1002c2c8
call fcn.10001830
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb22
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1000bd44
add esp, 4
mov edx, str.ERROR__________EHDownLoadFile________________FAILED
mov esi, 0x1002c2c8
call fcn.10001830
mov edx, str.LEAVING________________________________________________EHDownLoadFilesToFolder
call fcn.10001830
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000bb22
mov esp, ebp
pop ebp
ret