Function at 0x101556e5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov edx, dword [0x101bdb68]
mov edi, dword [ecx]
mov eax, dword [0x101bdb64]
mov dword [ebp - 0x10], edx
movzx edx, dl
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], eax
test byte [edi + 0x169], 1
je 0x10155266
or edx, 2
jmp 0x1015526a
movzx edx, byte [ebp - 0x10]
mov eax, edx
movzx ecx, byte [edi + 0x161]
or eax, 4
cmp ecx, 2
je 0x1015527d
mov eax, edx
mov edx, dword [ebp + 0xc]
and eax, 0xfffffff7
movzx ecx, byte [edx + 0x50]
mov esi, ecx
movzx edx, byte [edx + 0x51]
mov ebx, edx
shr esi, 1
and ebx, 4
and esi, 1
shr ebx, 2
shl esi, 3
or eax, esi
mov esi, ebx
shl esi, 4
and eax, 0xffffffef
or eax, esi
test dl, 1
je 0x101552b3
or eax, 4
jmp 0x101552c1
and edx, 2
mov esi, eax
and esi, 0xfffffffb
test edx, edx
je 0x101552c1
mov eax, esi
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + 0x48]
lea esi, [edx - 0xf]
cmp esi, 0x24
ja case.0x101552de.16
mov byte [ebp - 0x10], al
mov dword [ebp - 0x14], 4
jmp dword [esi*4 + 0x101bdb80]
mov edx, 0x40
jmp 0x101552ee
xor edx, edx
or edx, 0x400
jmp 0x10155c3c
mov edx, 0x40
jmp 0x10155302
xor edx, edx
or edx, 0x200
jmp 0x10155c3c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffffffb
cmp eax, 0x33
ja case.0x1015531f.13
jmp dword [eax*4 + 0x101bdc20]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 2
push dword [ecx + 0xc]
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 2
push 0x10
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 2
push 8
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 2
push 8
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 2
push 4
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov edx, 2
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movsx eax, word [ecx + 0x40]
push eax
push edx
push edx
push dword [ecx + 0x38]
push dword [ebx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 2
push 1
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx edx, word [ecx + 0x40]
push edx
mov ebx, dword [eax]
push 2
push dword [ecx + 0x38]
push dword [ebx]
call fcn.101602c0
add esp, 0x14
jmp 0x10155d02
mov dword [ebp - 0x18], edx
xor esi, esi
jmp 0x101558c4
mov dword [ebp - 0x18], eax
xor esi, esi
jmp 0x1015571e
mov edx, 0x40
jmp 0x10155c32
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffffffb
cmp eax, 0x33
ja case.0x1015547a.13
jmp dword [eax*4 + 0x101bdd00]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 0x10
push dword [ecx + 0xc]
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov edx, 0x10
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movsx eax, word [ecx + 0x40]
push eax
push edx
push edx
push dword [ecx + 0x38]
push dword [ebx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 0x10
push 8
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 0x10
push 8
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 0x10
push 4
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 0x10
push 2
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 0x10
push 1
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx edx, word [ecx + 0x40]
push edx
mov ebx, dword [eax]
push 0x10
push dword [ecx + 0x38]
push dword [ebx]
call fcn.101602c0
add esp, 0x14
jmp 0x10155d02
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffffffb
cmp eax, 0x33
ja case.0x101555b7.13
jmp dword [eax*4 + 0x101bdde0]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 8
push dword [ecx + 0xc]
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 8
push 0x10
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov edx, 8
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movsx eax, word [ecx + 0x40]
push eax
push edx
push edx
push dword [ecx + 0x38]
push dword [ebx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov edx, 8
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movsx eax, word [ecx + 0x40]
push eax
push edx
push edx
push dword [ecx + 0x38]
push dword [ebx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 8
push 4
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 8
push 2
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
movsx eax, word [edx + 0x40]
push eax
push 8
push 1
push dword [edx + 0x38]
push dword [ecx]
call fcn.1015fe30
add esp, 0x18
jmp 0x10155d02
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx edx, word [ecx + 0x40]
push edx
mov ebx, dword [eax]
push 8
push dword [ecx + 0x38]
push dword [ebx]
call fcn.101602c0
add esp, 0x14
jmp 0x10155d02
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp esi, 5
mov dword [ebp - 0x1c], esi
jl 0x101559b7
cmp dword [ebp - 0x1c], 0xc
jg 0x1015589b
mov ecx, dword [ebp + 0xc]
mov esi, 1
xor edx, edx
movsx eax, word [ecx + 0x42]
movsx ebx, word [ecx + 0x40]
mov dword [ebp - 0x18], eax
mov word [ecx + 0x40], si
mov word [ecx + 0x42], dx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffffffb
cmp eax, 0xc
ja case.0x10155ca0.31
jmp dword [eax*4 + 0x101bdef4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx edx, word [ecx + 0x40]
push edx
mov edi, dword [eax]
push 0xa
push dword [ecx + 0x38]
push dword [edi + 4]
push dword [edi]
call fcn.10160670
add esp, 0x18
jmp 0x10155d07
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movzx edx, byte [edi + 0x4c]
and edx, 4
shl edx, 2
push edx
mov eax, dword [eax]
movsx ecx, word [edi + 0x40]
push ecx
push dword [edi + 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.10160450
add esp, 0x18
jmp 0x10155d07
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx edx, word [ecx + 0x40]
push edx
mov edi, dword [eax]
push 0xa
push dword [ecx + 0x38]
push dword [edi]
call fcn.101602c0
add esp, 0x14
jmp 0x10155d07
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movzx edx, byte [edi + 0x4c]
and edx, 4
shl edx, 2
push edx
mov eax, dword [eax]
movsx ecx, word [edi + 0x40]
push ecx
push dword [edi + 0x38]
push dword [eax]
call fcn.10160130
add esp, 0x14
jmp 0x10155d07
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx ecx, word [edi + 0x40]
push ecx
mov edx, dword [eax]
push 0xa
push dword [edi + 0x38]
movzx eax, word [edx]
push eax
call fcn.101602c0
add esp, 0x14
jmp 0x10155d07
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
movsx edx, word [edx]
movzx ecx, byte [eax + 0x4c]
and ecx, 4
shl ecx, 2
push ecx
movsx edi, word [eax + 0x40]
push edi
push dword [eax + 0x38]
push edx
call fcn.10160130
add esp, 0x14
jmp 0x10155d07
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
movsx ecx, word [edi + 0x40]
push ecx
mov edx, dword [eax]
push 0xa
push dword [edi + 0x38]
movzx eax, byte [edx]
push eax
call fcn.101602c0
add esp, 0x14
jmp 0x10155d07
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
movsx edx, byte [edx]
movzx ecx, byte [eax + 0x4c]
and ecx, 4
shl ecx, 2
push ecx
movsx edi, word [eax + 0x40]
push edi
push dword [eax + 0x38]
push edx
call fcn.10160130
add esp, 0x14
jmp 0x10155d07
mov eax, 0x3d
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 0x11
jg 0x10155989
mov edx, dword [ebp + 0xc]
xor esi, esi
movsx ecx, word [edx + 0x42]
movsx ebx, word [edx + 0x40]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov word [edx + 0x40], si
mov esi, 1
mov word [edx + 0x42], cx
test byte [edi + 0x168], 0x10
je 0x101558d3
or eax, 1
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffffffb
cmp eax, 0xc
ja case.0x10155ca0.31
jmp dword [eax*4 + 0x101bdec0]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x4000000
mov ecx, dword [eax]
push dword [edx + 0x38]
push dword [ecx + 4]
push dword [ecx]
call fcn.10160a00
add esp, 0x14
jmp 0x10155d07
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push 0x4000000
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [edx + 0x38]
push dword [ecx]
call fcn.10160850
add esp, 0x18
jmp 0x10155d07
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push 0x4000000
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push dword [ecx + 0x38]
movsx edi, word [edx]
push edi
call fcn.10160850
add esp, 0x18
jmp 0x10155d07
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push 0x4000000
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push dword [ecx + 0x38]
movsx edi, byte [edx]
push edi
call fcn.10160850
add esp, 0x18
jmp 0x10155d07
cmp dword [ebp - 0x1c], 0x38
jl 0x101559b7
cmp dword [ebp - 0x1c], 0x39
jg 0x101559b7
mov esi, dword [ebp + 0xc]
xor edx, edx
movsx eax, word [esi + 0x42]
movsx ebx, word [esi + 0x40]
mov dword [ebp - 0x18], eax
mov word [esi + 0x40], dx
mov word [esi + 0x42], dx
mov esi, 1
jmp 0x10155d2b
cmp edx, 0x23
je 0x10155dc3
xor edx, edx
mov ebx, dword [ebp + 0xc]
movzx esi, byte [edi + 0x168]
mov dword [ebp - 0x20], esi
movzx ebx, byte [ebx + 0x4f]
and ebx, 8
shr ebx, 3
test esi, 2
je 0x101559f3
mov esi, edx
or esi, 0x100000
test ebx, ebx
jne 0x101559ef
mov edx, esi
jne 0x101559f7
jmp 0x10155a10
test ebx, ebx
je 0x10155a10
mov ebx, edx
movzx edi, byte [edi + 0x173]
or ebx, 0x4000
test edi, 0x80
je 0x10155a10
mov edx, ebx
test byte [ebp - 0x20], 0x40
je 0x10155a1c
or eax, 1
mov byte [ebp - 0x10], al
mov ebx, dword [ebp + 0xc]
mov eax, edx
or eax, 0x10
mov esi, ecx
and esi, 8
test byte [ebx + 0x4c], 4
jne 0x10155a31
mov eax, edx
or eax, 0x80000000
mov edi, eax
or edi, 0x1000000
test cl, 4
jne 0x10155a45
mov edi, eax
shl esi, 0x14
mov eax, 0x800000
or edi, esi
mov edx, edi
or edx, 0x400000
test cl, 0x10
jne 0x10155a5e
mov edx, edi
and ecx, 0x40
shr ecx, 5
shl eax, cl
add eax, 0xff800000
or edx, eax
mov eax, edx
or eax, 0x100
test byte [ebx + 0x4c], 0x40
jne 0x10155a7c
mov eax, edx
mov edx, dword [ebp - 0x1c]
add edx, 0xffffffe6
mov dword [ebp - 0x1c], edx
cmp edx, 0x1a
ja case.0x10155ca0.31
jmp dword [edx*4 + 0x101bdf40]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx edx, word [esi + 0x42]
push edx
push dword [esi + 0x38]
movsx ecx, word [esi + 0x40]
push ecx
movsx ebx, byte [esi + 0x44]
push ebx
push dword [esi + 0x38]
push dword [eax]
call fcn.10160bb0
jmp 0x10155cff
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx edx, word [esi + 0x42]
push edx
push dword [esi + 0x38]
movsx ecx, word [esi + 0x40]
push ecx
movsx ebx, byte [esi + 0x44]
push ebx
push dword [esi + 0x38]
push dword [eax]
call fcn.10161d20
jmp 0x10155cff
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx edx, word [esi + 0x42]
push edx
push dword [esi + 0x38]
movsx ecx, word [esi + 0x40]
push ecx
movsx ebx, byte [esi + 0x44]
push ebx
push dword [esi + 0x38]
push dword [eax]
call fcn.10163010
jmp 0x10155cff
mov eax, dword [ebp + 0xc]
movzx ebx, byte [eax + 0x4c]
mov esi, ebx
and esi, 4
mov eax, ecx
and eax, 8
shl eax, 0x14
lea edi, [esi*4 + 2]
or edi, 0x80000000
mov esi, edi
or esi, 0x1000000
test cl, 4
jne 0x10155b58
mov esi, edi
or esi, eax
mov eax, 0x800000
mov edx, esi
or edx, 0x400000
test cl, 0x10
jne 0x10155b6e
mov edx, esi
and ecx, 0x40
shr ecx, 5
shl eax, cl
add eax, 0xff800000
or edx, eax
mov eax, edx
or eax, 0x100
test bl, 0x40
jne 0x10155b8b
mov eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
add edx, 0xffffffe6
cmp edx, 0x1a
ja case.0x10155ca0.31
jmp dword [edx*4 + 0x101bdfc0]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx edx, word [esi + 0x42]
push edx
push 0
movsx ecx, word [esi + 0x40]
push ecx
movsx ebx, byte [esi + 0x44]
push ebx
push dword [esi + 0x38]
push dword [eax]
call fcn.10160bb0
jmp 0x10155cff
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov ebx, dword [ebp + 0xc]
push 0
mov eax, dword [ebp + 8]
push dword [ebx + 0x38]
movsx edx, word [ebx + 0x40]
push edx
movsx ecx, byte [ebx + 0x44]
push ecx
push dword [ebx + 0x38]
push dword [eax]
call fcn.10161d20
jmp 0x10155cff
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov ebx, dword [ebp + 0xc]
push 0
mov eax, dword [ebp + 8]
push dword [ebx + 0x38]
movsx edx, word [ebx + 0x40]
push edx
movsx ecx, byte [ebx + 0x44]
push ecx
push dword [ebx + 0x38]
push dword [eax]
call fcn.10163010
jmp 0x10155cff
xor edx, edx
or edx, 1
jmp 0x10155c3c
mov edx, 5
mov eax, dword [ebp + 0xc]
mov ebx, edx
or ebx, 0x10
mov edi, 0x800000
test byte [eax + 0x4c], 4
jne 0x10155c51
mov ebx, edx
or ebx, 0x80000000
mov edx, ecx
mov esi, ebx
and edx, 8
or esi, 0x1000000
test cl, 4
jne 0x10155c6b
mov esi, ebx
shl edx, 0x14
or esi, edx
mov eax, esi
or eax, 0x400000
test cl, 0x10
mov edx, dword [ebp + 8]
jne 0x10155c81
mov eax, esi
and ecx, 0x40
shr ecx, 5
shl edi, cl
mov edx, dword [edx + 8]
add edi, 0xff800000
add edx, 0xffffffe6
or eax, edi
cmp edx, 0x1a
ja case.0x10155ca0.31
jmp dword [edx*4 + 0x101be040]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx edx, word [esi + 0x42]
push edx
push 0
movsx ecx, word [esi + 0x40]
push ecx
movsx ebx, byte [esi + 0x44]
push ebx
push dword [esi + 0x38]
push dword [eax]
call fcn.10161d20
jmp 0x10155cff
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx edx, word [esi + 0x42]
push edx
push 0
movsx ecx, word [esi + 0x40]
push ecx
movsx ebx, byte [esi + 0x44]
push ebx
push dword [esi + 0x38]
push dword [eax]
call fcn.10163010
add esp, 0x28
mov dword [ebp - 0x18], edx
xor esi, esi
test eax, eax
je 0x10155d81
cmp eax, 0xa
je 0x10155d81
cmp eax, 0xc
je 0x10155d81
cmp eax, 8
mov eax, 0x40
je 0x10155d83
mov eax, 0x3f
jmp 0x10155d83
mov dword [ebp - 0x18], eax
xor esi, esi
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0x38]
mov edi, ecx
mov eax, dword [eax + 0xc]
sub edi, eax
test edi, edi
jle 0x10155d69
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov byte [edx + esi], 0x20
inc edx
mov ecx, dword [eax + 0x38]
mov edi, ecx
mov eax, dword [ebx + 0xc]
sub edi, eax
cmp edx, edi
jl 0x10155d4d
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp ecx, eax
jl 0x10155d6f
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
add edx, dword [ebp + 0x10]
push dword [eax]
push edx
call fcn.10171700
add esp, 0xc
xor eax, eax
test esi, esi
je 0x10155d95
mov edx, dword [ebp + 0xc]
mov word [edx + 0x40], bx
mov ebx, dword [ebp - 0x18]
mov word [edx + 0x42], bx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, 0x30
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edx, 0x40
test ebx, ebx
je 0x101559c2
mov edx, 0
jmp 0x101559c2