Function at 0x10005930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x10026b04]
sub esp, 8
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005940
xor eax, eax
sub ecx, edx
add ecx, 1
push ebx
setb al
push esi
neg eax
or eax, ecx
push edi
push eax
call fcn.1000e565
mov ebx, eax
add esp, 4
mov eax, dword [0x10026b04]
mov dword [ebp - 4], ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005970
sub eax, edx
inc eax
push eax
push 0
push ebx
call fcn.1000a730
mov edx, dword [0x10026b04]
add esp, 0xc
mov ecx, edx
xor esi, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005993
sub ecx, edi
je 0x100059cd
nop
movsx eax, byte [edx + esi]
push eax
call fcn.1000e8a2
mov byte [esi + ebx], al
add esp, 4
mov edx, dword [0x10026b04]
inc esi
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100059c0
sub ecx, edi
cmp esi, ecx
jb 0x100059a0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100059d0
sub edx, ecx
xor eax, eax
lea ecx, [edx + edx]
add ecx, 2
setb al
neg eax
or eax, ecx
push eax
call fcn.1000e565
mov ebx, eax
add esp, 4
mov eax, dword [0x10026b04]
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005a00
sub eax, edx
lea eax, [eax*2 + 2]
push eax
push 0
push ebx
call fcn.1000a730
mov ecx, dword [0x10026b04]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005a25
sub ecx, edx
push ecx
push ebx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebx]
xor esi, esi
mov edi, ebx
cmp eax, 0xa
je 0x10005a7b
mov edx, eax
nop dword [eax]
test dx, dx
je 0x10005a7b
imul ecx, esi, 0x83
add edi, 2
movzx eax, dl
add ecx, eax
movzx eax, dx
imul esi, ecx, 0x83
shr eax, 8
add esi, eax
movzx eax, word [edi]
mov edx, eax
cmp eax, 0xa
jne 0x10005a50
push dword [ebp - 4]
and esi, 0x7fffffff
call fcn.1000e229
push ebx
call fcn.1000e229
mov ebx, dword [0x10026bb4]
add esp, 8
mov eax, ebx
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
je 0x10005ab0
mov eax, dword [eax + 0xc]
cmp esi, dword [eax]
je 0x10005ad2
cmp dword [eax + 0xc], 0
jne 0x10005aa3
mov esi, dword [0x10026b10]
test esi, esi
je 0x10005bea
cmp dword [ecx], 0
je 0x10005b38
mov ebx, dword [ebx + 0xc]
cmp esi, dword [ebx]
je 0x10005ada
cmp dword [ebx + 0xc], 0
jne 0x10005ac3
jmp 0x10005b38
mov dword [0x10026b10], esi
jmp 0x10005ab6
push dword [ebx + 4]
call fcn.1000e565
push dword [ebx + 4]
mov edi, eax
push 0
push edi
call fcn.1000a730
push 0x10023864
push 0x10023868
call fcn.1000b634
push 0
push dword [ebx + 8]
mov esi, eax
push esi
call fcn.1000eb8c
push esi
push 1
push dword [ebx + 4]
push edi
call fcn.1000e3fa
push esi
call fcn.1000c1c3
push dword [ebx + 4]
push edi
push dword [0x10026b18]
call fcn.1000a1b0
add esp, 0x44
push edi
call fcn.1000e229
add esp, 4
mov eax, dword [0x10026b34]
test eax, eax
je 0x10005bd6
push eax
push dword [0x10026b04]
call fcn.1000e14e
push dword [0x10026b34]
push 0x10022cf4
call fcn.1000e14e
push dword [0x10026b10]
push str.PicHash:0x_X
push dword [0x10026b34]
call fcn.10005520
push dword [0x10026b34]
push 0x10022cf4
call fcn.1000e14e
push dword [ebx + 4]
push str.PicSize:0x_X
push dword [0x10026b34]
call fcn.10005520
push dword [0x10026b34]
push 0x10022cf4
call fcn.1000e14e
push dword [0x10026b18]
push str.PicOffset:0x_X
push dword [0x10026b34]
call fcn.10005520
add esp, 0x44
push dword [0x10026b34]
push 0x10022c40
call fcn.1000e14e
add esp, 8
mov dword [0x10026b10], 0
mov dword [0x10026b18], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret