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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c868e
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x88], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
call fcn.0040612d
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 0
call fcn.00471790
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 1
jne 0x4ad7c4
push 0
sub esp, 8
lea ecx, [ebp - 0x98]
mov eax, esp
mov dword [eax], 0x5fcef8
mov dword [eax + 4], 0
cmp dword [ebp - 0x84], 8
cmovae ecx, dword [ebp - 0x98]
sub esp, 8
mov edx, esp
lea esi, [ecx + 2]
mov dword [edx], ecx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ad781
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x168]
call fcn.00479160
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x98]
push eax
call fcn.0040612d
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x39c], 0
xor ecx, ecx
push eax
mov dword [ebp - 0x3a8], ecx
call fcn.004749b0
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
call fcn.0040612d
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 2
push eax
call fcn.004749e0
add esp, 4
cmp dword [eax + 4], 0
jne 0x4ad915
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004173e6
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ad88b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x3a8], edi
test edi, edi
jne 0x4ad8b1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
push edi
mov dword [ebp - 0x3b4], 0
call fcn.0053a821
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x3b4]
mov dword [ebp - 0x39c], ebx
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3b4], edi
je 0x4add87
push ebx
call fcn.0053a82a
add esp, 4
mov dword [ebp - 0x39c], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
lea eax, [ebp - 0x3a4]
push eax
call fcn.004749e0
add esp, 4
mov dword [ebp - 0x50], 0
xor ecx, ecx
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0x60]
push dword [eax + 4]
push dword [eax]
call fcn.0040612d
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.004173e6
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4ad99e
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ad994
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4adf9d
push edx
push ecx
call fcn.0053a186
add esp, 8
call fcn.00474e20
test al, al
je 0x4ad9b9
call fcn.00474a10
mov esi, eax
mov dword [ebp - 0x3b4], esi
jmp 0x4adaef
lea eax, [ebp - 0x3b8]
push eax
call fcn.00474a20
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], dx
call fcn.0040612d
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push 0
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
push eax
call fcn.004b4240
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
cmovae ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00498f10
mov edx, dword [ebp - 0x4c]
add esp, 0x18
mov byte [ebp - 4], 4
mov esi, eax
mov dword [ebp - 0x3b4], esi
cmp edx, 0x10
jb 0x4ada74
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ada6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4adfa2
push edx
push ecx
call fcn.0053a186
add esp, 8
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0
mov word [eax], cx
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4adadb
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4adad1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4adfa7
push edx
push ecx
call fcn.0053a186
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
test esi, esi
jne 0x4adb04
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
lea eax, [ebp - 0x98]
mov dword [ebp - 0x3bc], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b9e1
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3a4], 0x5ff994
mov dword [ebp - 0x3a0], 1
call fcn.0048cb60
mov esi, eax
cmp esi, dword [0x625120]
je 0x4adc33
nop dword [eax + eax]
push 1
push 0x60567c
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004296a0
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x48]
add esi, 2
cmp dword [ebp - 0x34], 8
cmovae edx, dword [ebp - 0x48]
mov dword [ebp - 0x3ac], edx
cmp ecx, 1
jb 0x4adc24
lea eax, [ecx - 1]
cmp esi, eax
ja 0x4adc24
lea eax, [edx + ecx*2]
mov dword [ebp - 0x3a0], eax
lea esi, [edx + esi*2]
nop dword [eax]
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x4adbd4
cmp word [esi], 0x5c
je 0x4adbd2
cmp ecx, 1
je 0x4adbd4
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x4adbc3
mov edx, esi
mov esi, edx
test esi, esi
je 0x4adc24
movzx ecx, word [esi]
mov edx, 0x5c
mov edi, 1
mov eax, 0x5ff994
cmp ecx, edx
jb 0x4adc0f
mov ebx, esi
sub ebx, eax
cmp cx, dx
ja 0x4adc0f
cmp edi, 1
je 0x4adc1a
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx edx, word [eax]
cmp cx, dx
jae 0x4adbf7
mov eax, dword [ebp - 0x3a0]
add esi, 2
jmp 0x4adbb0
sub esi, dword [ebp - 0x3ac]
sar esi, 1
jmp 0x4adc27
or esi, 0xffffffff
cmp esi, dword [0x625120]
jne 0x4adb60
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x398]
mov esi, dword [ebp - 0x3b4]
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push 1
push eax
push esi
call fcn.00498630
add esp, 0x14
test eax, eax
je 0x4adc7b
lea ecx, [ebp - 0x48]
call fcn.00405f7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x3a8], edi
test edi, edi
jne 0x4adca4
lea ecx, [ebp - 0x48]
call fcn.00405f7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
push edi
call fcn.0053a821
push edi
mov ebx, eax
mov dword [ebp - 0x39c], eax
push ebx
push dword [ebp - 0x3bc]
push esi
call fcn.00499500
add esp, 0x14
test eax, eax
je 0x4add0c
cmp eax, 0x600
je 0x4add0c
push ebx
call fcn.0053a82a
add esp, 4
mov dword [ebp - 0x39c], 0
call fcn.00474e20
test al, al
jne 0x4adcf3
push esi
call fcn.00498190
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00405f7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4addf8
call fcn.00474e20
test al, al
jne 0x4add1e
push esi
call fcn.00498190
add esp, 4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], 0
cmovae eax, dword [ebp - 0x48]
xor ecx, ecx
mov byte [ebp - 4], 2
mov word [eax], cx
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4add73
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4add69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4adfac
push edx
push ecx
call fcn.0053a186
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov byte [ebp - 4], 1
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4adddc
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4addd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4adfb1
push edx
push ecx
call fcn.0053a186
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test ebx, ebx
jne 0x4ade95
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push 0
cmovae eax, dword [ebp - 0x98]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ade95
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x3a8], edi
test edi, edi
je 0x4ade9b
push edi
mov dword [ebp - 0x3a0], 0
call fcn.0053a821
add esp, 4
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x3a0]
push 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3a0], edi
je 0x4ade9b
push dword [ebp - 0x39c]
call fcn.0053a82a
add esp, 4
mov dword [ebp - 0x39c], 0
jmp 0x4ade9b
mov edi, dword [ebp - 0x3a8]
mov ebx, dword [ebp - 0x39c]
xor esi, esi
test ebx, ebx
je 0x4adf3d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x3a8]
push ecx
push ebx
push eax
call fcn.0058cfa0
add esp, 0xc
mov dword [ebp - 0x3ac], esi
lea eax, [ebp - 0x3ac]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 0x3ac]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4adf1a
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push ebx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
mov dword [esi + 8], 0
test eax, eax
je 0x4adf2f
mov eax, dword [ebp - 0x3ac]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
push dword [ebp - 0x39c]
call fcn.0053a82a
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.00405f7b
lea ecx, [ebp - 0x114]
call fcn.00405f7b
lea ecx, [ebp - 0x130]
call fcn.00405f7b
lea ecx, [ebp - 0x14c]
call fcn.00405f7b
lea ecx, [ebp - 0x168]
call fcn.00405f7b
lea ecx, [ebp - 0x98]
call fcn.00405f7b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053a175
mov esp, ebp
pop ebp
ret
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
call fcn.0059164f
int3