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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c83de
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.00471680
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 1
jne 0x4adab4
push 0
sub esp, 8
lea ecx, [ebp - 0x98]
mov eax, esp
mov dword [eax], 0x5fcdf8
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 0x4ada71
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x168]
call fcn.00479080
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.004748a0
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.004748d0
add esp, 4
cmp dword [eax + 4], 0
jne 0x4adc05
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.004172c6
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 0x4adb7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x3a8], edi
test edi, edi
jne 0x4adba1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
push edi
mov dword [ebp - 0x3b4], 0
call fcn.0053a514
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 0x4ae077
push ebx
call fcn.0053a51d
add esp, 4
mov dword [ebp - 0x39c], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
lea eax, [ebp - 0x3a4]
push eax
call fcn.004748d0
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.004172c6
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4adc8e
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4adc84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae28d
push edx
push ecx
call fcn.00539e76
add esp, 8
call fcn.00474d10
test al, al
je 0x4adca9
call fcn.00474900
mov esi, eax
mov dword [ebp - 0x3b4], esi
jmp 0x4adddf
lea eax, [ebp - 0x3b8]
push eax
call fcn.00474910
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.004b4520
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.00499200
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 0x4add64
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4add5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae292
push edx
push ecx
call fcn.00539e76
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 0x4addcb
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4addc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae297
push edx
push ecx
call fcn.00539e76
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 0x4addf4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
lea eax, [ebp - 0x98]
mov dword [ebp - 0x3bc], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b8c1
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], 0x5ff854
mov dword [ebp - 0x3a0], 1
call fcn.0048ce70
mov esi, eax
cmp esi, dword [0x625120]
je 0x4adf23
nop dword [eax + eax]
push 1
push 0x60551c
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00429580
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 0x4adf14
lea eax, [ecx - 1]
cmp esi, eax
ja 0x4adf14
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 0x4adec4
cmp word [esi], 0x5c
je 0x4adec2
cmp ecx, 1
je 0x4adec4
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x4adeb3
mov edx, esi
mov esi, edx
test esi, esi
je 0x4adf14
movzx ecx, word [esi]
mov edx, 0x5c
mov edi, 1
mov eax, 0x5ff854
cmp ecx, edx
jb 0x4adeff
mov ebx, esi
sub ebx, eax
cmp cx, dx
ja 0x4adeff
cmp edi, 1
je 0x4adf0a
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx edx, word [eax]
cmp cx, dx
jae 0x4adee7
mov eax, dword [ebp - 0x3a0]
add esi, 2
jmp 0x4adea0
sub esi, dword [ebp - 0x3ac]
sar esi, 1
jmp 0x4adf17
or esi, 0xffffffff
cmp esi, dword [0x625120]
jne 0x4ade50
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.00498920
add esp, 0x14
test eax, eax
je 0x4adf6b
lea ecx, [ebp - 0x48]
call fcn.00405f7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x3a8], edi
test edi, edi
jne 0x4adf94
lea ecx, [ebp - 0x48]
call fcn.00405f7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
push edi
call fcn.0053a514
push edi
mov ebx, eax
mov dword [ebp - 0x39c], eax
push ebx
push dword [ebp - 0x3bc]
push esi
call fcn.004997f0
add esp, 0x14
test eax, eax
je 0x4adffc
cmp eax, 0x600
je 0x4adffc
push ebx
call fcn.0053a51d
add esp, 4
mov dword [ebp - 0x39c], 0
call fcn.00474d10
test al, al
jne 0x4adfe3
push esi
call fcn.00498480
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00405f7b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405f7b
jmp 0x4ae0e8
call fcn.00474d10
test al, al
jne 0x4ae00e
push esi
call fcn.00498480
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 0x4ae063
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ae059
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae29c
push edx
push ecx
call fcn.00539e76
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 0x4ae0cc
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ae0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae2a1
push edx
push ecx
call fcn.00539e76
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 0x4ae185
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 0x4ae185
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x3a8], edi
test edi, edi
je 0x4ae18b
push edi
mov dword [ebp - 0x3a0], 0
call fcn.0053a514
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 0x4ae18b
push dword [ebp - 0x39c]
call fcn.0053a51d
add esp, 4
mov dword [ebp - 0x39c], 0
jmp 0x4ae18b
mov edi, dword [ebp - 0x3a8]
mov ebx, dword [ebp - 0x39c]
xor esi, esi
test ebx, ebx
je 0x4ae22d
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.0058cce0
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 0x4ae20a
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 0x4ae21f
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.0053a51d
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.00539e65
mov esp, ebp
pop ebp
ret
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
call fcn.0059138f
int3