Function at 0x40b8e4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 4
pop ebx
push ebx
push 0x4a5184
push esi
mov dword [ebp - 4], ecx
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2fe
push ebx
push 0x4a5188
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2fe
push ebx
push 0x4a518c
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2fe
push ebx
push 0x4a5190
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2fe
push ebx
push 0x4a5194
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2fe
push ebx
push 0x4a5198
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2fe
push 5
push str._PDF_
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40b9a3
mov dword [edi + 0x18], 0x2f
jmp 0x40c305
push 8
push 0x4a52cc
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40b9c3
mov dword [edi + 0x18], 0x30
jmp 0x40c305
push ebx
push 0x4a51ac
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2f5
push 8
push str.PK00PK
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2f5
push ebx
push 0x4a519c
push esi
call fcn.0047c81f
add esp, 0xc
mov dword [ebp - 0x10], 0x100000
xor ecx, ecx
xor ebx, ebx
inc ecx
push 2
pop edx
test eax, eax
je 0x40ba2e
push 4
push 0x4a51a4
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40baa6
xor ecx, ecx
push 2
inc ecx
pop edx
movzx eax, word [esi + 2]
mov dword [ebp - 0x18], eax
cmp cx, ax
je 0x40ba3f
cmp dx, ax
jne 0x40baa6
movzx ecx, word [esi + 4]
lea eax, [ecx - 1]
cmp ax, 0xf
ja 0x40baa6
mov eax, ecx
mov dword [ebp - 0xc], 6
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40baa6
lea eax, [esi + 0xe]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add eax, 0xfffffff8
push eax
call fcn.0040c368
test al, al
je 0x40ba91
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
mov eax, dword [eax]
add ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0x100000
jb 0x40bb59
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
inc ecx
add eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp - 0x1c]
jb 0x40ba65
push 4
push 0x4a51bc
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2c4
push 4
push 0x4a51c4
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2c4
push 6
push str.GIF87a
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2a5
push 6
push str.GIF89a
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c2a5
mov eax, 0x4d42
cmp ax, word [esi]
jne 0x40bb8d
cmp word [esi + 6], bx
jne 0x40bb8d
cmp word [esi + 8], bx
jne 0x40bb8d
mov eax, dword [esi + 0xe]
cmp eax, 0xc
je 0x40bb42
cmp eax, 0x40
je 0x40bb42
cmp eax, 0x34
je 0x40bb42
cmp eax, 0x28
je 0x40bb42
cmp eax, 0x38
je 0x40bb42
cmp eax, 0x6c
je 0x40bb42
cmp eax, 0x7c
jne 0x40bb8d
mov eax, dword [ebp - 4]
push 9
pop ecx
mov dword [eax + 0x1e68], ecx
mov dword [edi + 0x18], ecx
mov eax, dword [esi + 2]
jmp 0x40c2ed
mov eax, dword [ebp - 4]
xor edx, edx
inc edx
cmp dx, word [ebp - 0x18]
jne 0x40bb73
push 0x1e
pop edx
mov dword [edi + 0x18], edx
mov dword [eax + 0x1e68], edx
jmp 0x40bb7f
push 0x12
pop edx
mov dword [eax + 0x1e68], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ebx
xor eax, eax
inc eax
jmp 0x40c307
lea eax, [esi + 4]
push 4
push eax
push str.ftyp__0_r_nSECTION_r_n__2_r_nHEADER_r_n
mov dword [ebp - 0x1c], eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bbb0
inc eax
mov dword [edi + 0x18], eax
jmp 0x40c307
push 0x10
push esi
push 0x4a513c
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bbcd
mov dword [edi + 0x18], 6
jmp 0x40bb85
push 3
push 0x4a5298
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bbea
mov dword [edi + 0x18], 0x29
jmp 0x40bb85
mov eax, 0x539030
mov dword [ebp - 8], eax
push 8
push dword [eax]
lea eax, [esi + 4]
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c299
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp eax, 0x53903c
jl 0x40bbf2
push 4
lea eax, [esi + 4]
push str.moov
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c28d
push 4
lea eax, [esi + 4]
push str.mdat
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c28d
push 4
lea eax, [esi + 4]
push str.ftyp
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c28d
push 0x1b
push 0x4a51e0
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bc8b
mov dword [edi + 0x18], 0x16
jmp 0x40bb85
push 4
push 0x4a5250
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bcab
mov dword [edi + 0x18], 0x19
jmp 0x40bb85
push 0x14
push 0x4a5254
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c281
push 8
push str.MThd
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bd00
mov ax, word [esi + 8]
push 2
rol ax, 8
pop ecx
cmp ax, cx
ja 0x40bd00
mov ax, word [esi + 0xa]
rol ax, 8
test ax, ax
je 0x40bd00
mov dword [edi + 0x18], 0x24
jmp 0x40bb85
push 4
push str.8BPS
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bd20
mov dword [edi + 0x18], 0x33
jmp 0x40bb85
push 0x20
push str.Paint_Shop_Pro_Image_File_n
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bd40
mov dword [edi + 0x18], 0x34
jmp 0x40bb85
push 4
push esi
push str._BDN
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bd87
mov al, byte [esi + 0xa]
cmp al, 0xe
jne 0x40bd63
mov eax, dword [esi + 0xa8]
jmp 0x40bd6d
cmp al, 0x17
jne 0x40bd70
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push 0x35
pop ecx
mov dword [edi + 0x18], ecx
mov dword [eax + 0x1e68], ecx
mov eax, dword [ebp - 0x10]
jmp 0x40c2ed
push 7
push 0x4a5308
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c275
push 7
push str.Rar_
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c275
cmp dword [esi], 0x4d42
jne 0x40be0f
mov ecx, dword [ebp - 4]
push esi
call fcn.0040b895
test al, al
je 0x40bdd5
mov dword [edi + 0x18], 0x3f
jmp 0x40be02
mov ecx, dword [ebp - 4]
push esi
call fcn.0040b774
test al, al
je 0x40bdeb
mov dword [edi + 0x18], 8
jmp 0x40be02
mov ecx, dword [ebp - 4]
push esi
call fcn.0040b7c3
push 0xb
pop ecx
test al, al
push 0x38
pop eax
cmovne eax, ecx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, 8
jmp 0x40c2ed
push 5
push str._rtf
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40be2f
mov dword [edi + 0x18], 0x39
jmp 0x40bb85
push 3
push 0x4a5320
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c1a4
push 3
push 0x4a5324
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c1a4
push 4
push 0x4a5328
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push 0x4a5330
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 8
push str.FUJIFILMMM
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push 0x4a5340
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push 0x4a5344
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push str.IIRO
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push str.MMOR
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push str.IIRS
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c198
push 4
push 0x4a5360
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bf3f
mov dword [edi + 0x18], 0x55
jmp 0x40bb85
push 5
push str.OggS
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bf76
inc eax
push eax
lea eax, [esi + 5]
push 0x4a5139
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bf76
mov dword [edi + 0x18], 0x2b
jmp 0x40bb85
push 8
push 0x4a52a4
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bf96
mov dword [edi + 0x18], 0x2d
jmp 0x40bb85
push 0x10
push 0x4a52b0
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40bfbd
mov dword [edi + 0x18], 0x2e
mov dword [edi + 0x10], 0x100000
jmp 0x40bb82
mov eax, 0x4a5208
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
push 0x10
push eax
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c189
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add ecx, 0x10
add eax, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp ecx, 0x40
jb 0x40bfc8
push 8
push str.JMF6
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c189
push 6
push esi
push 0x4a5278
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40c086
cmp byte [esi + 6], bl
jne 0x40c26e
mov edx, dword [esi + 0x14]
mov eax, edx
or eax, dword [esi + 0x18]
je 0x40c26e
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
cmp ecx, 0x70000000
ja 0x40c26e
jb 0x40c052
cmp eax, ebx
ja 0x40c26e
mov esi, dword [esi + 0x18]
cmp esi, 0x70000000
ja 0x40c26e
jb 0x40c06b
cmp edx, ebx
ja 0x40c26e
add eax, edx
mov dword [edi + 0x18], 0x26
adc ecx, esi
add eax, 0x20
adc ecx, ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x40bb85
push 4
push 0x4a5248
push esi
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40c0ff
push 4
lea eax, [esi + 0x1c]
push 0x4a516c
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c0e7
push 4
lea eax, [esi + 0x1c]
push 0x4a517c
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
je 0x40c0e7
push 4
lea eax, [esi + 0x1c]
push 0x4a5174
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40c0ff
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
jmp 0x40c0f3
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
mov dword [edi + 0x18], 0x18
jmp 0x40c2ed
cmp dword [esi], 0x4d42
jne 0x40c26e
cmp dword [esi + 8], 0x60
jne 0x40c26e
push 0x10
lea eax, [esi + 0x18]
push 0x4a514c
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40c26e
push 0x10
lea eax, [esi + 0x28]
push 0x4a515c
push eax
call fcn.0047c81f
add esp, 0xc
test eax, eax
jne 0x40c26e
mov ecx, dword [esi + 8]
add ecx, esi
cmp dword [ecx], 0x1fe
jne 0x40c26e
cmp dword [ecx + 4], ebx
jne 0x40c26e
cmp dword [ecx + 0x10], ebx
jne 0x40c26e
cmp dword [ecx + 0x14], ebx
jne 0x40c26e
mov dword [edi + 0x18], 0xc
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
jmp 0x40c07b
mov dword [edi + 0x18], 0x13
mov eax, dword [esi + 0x7c]
jmp 0x40c2ed
mov dword [edi + 0x18], 0x3d
jmp 0x40bb85
lea eax, [esi + 8]
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x14], eax
mov al, byte [esi + 3]
sub al, 3
cmp al, 0x11
ja 0x40c26e
mov ecx, dword [esi + 4]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [esi + 7]
shl edx, 8
or edx, ecx
or edx, eax
cmp edx, 9
jb 0x40c26e
movzx eax, byte [esi + 8]
xor edx, edx
shr eax, 3
inc edx
mov dword [ebp - 0xc], eax
cmp eax, edx
jbe 0x40c26e
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3a3
push dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3a3
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3a3
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c3a3
add esp, 0x30
test esi, esi
jne 0x40c26e
cmp dword [ebp - 0x18], ebx
jne 0x40c26e
cmp dword [ebp - 8], ebx
jle 0x40c26e
test eax, eax
jle 0x40c26e
mov eax, dword [ebp - 4]
push 0x3b
pop ecx
mov dword [eax + 0x1e68], ecx
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], ecx
mov eax, dword [eax]
jmp 0x40c2ed
xor al, al
jmp 0x40c307
mov dword [edi + 0x18], 0x37
jmp 0x40bb85
mov dword [edi + 0x18], 0x25
jmp 0x40bb85
mov dword [edi + 0x18], 0x28
jmp 0x40bb85
mov dword [edi + 0x18], 0x2a
jmp 0x40bb85
call fcn.00465b29
xor ecx, ecx
inc ecx
add dword [eax + 0x238], ecx
adc dword [eax + 0x23c], ebx
mov al, cl
mov dword [edi + 0x18], 0x1a
jmp 0x40c307
mov ecx, dword [esi + 0x124]
movzx eax, word [esi + 0x128]
add ecx, 0x1ff
mov edx, dword [ebp - 4]
add eax, ecx
push 0x14
pop esi
mov dword [edi + 0x18], esi
and eax, 0xfffffe00
mov dword [edx + 0x1e68], esi
mov dword [edi + 0x10], eax
jmp 0x40bb82
mov dword [edi + 0x18], 0x44
jmp 0x40c305
mov dword [edi + 0x18], 0x1f
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8