Function at 0x4070b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bf19
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5cc6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mov esi, dword [ebp + 8]
mov ebx, 0x2e
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0
lea ecx, [edi + 2]
mul ecx
mov al, byte [ebp + 0x14]
mov ecx, 0x3d
shr edx, 1
shl edx, 2
test al, al
movzx eax, al
cmovne ecx, ebx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x1c], ecx
mov ebx, dword [eax*4 + 0x5cc008]
mov dword [ebp - 0x24], ebx
mov byte [esi], 0
push edx
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
call fcn.00407f60
xor eax, eax
mov dword [ebp - 0x20], eax
test edi, edi
je 0x407c17
mov ecx, dword [ebp + 0xc]
or edi, 0xffffffff
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14], edx
movzx eax, byte [eax + ecx]
mov ecx, dword [esi + 0x14]
shr eax, 2
mov dword [ebp - 0x18], ecx
mov bl, byte [eax + ebx]
mov byte [ebp - 0xd], bl
cmp edx, ecx
jae 0x40718c
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x40717f
mov eax, dword [esi]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
jmp 0x407297
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x407c30
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x4071b1
mov ebx, SysReAllocString
jmp 0x4071d2
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x4071c7
mov ebx, SysReAllocString
jmp 0x4071cf
lea eax, [edi + ecx]
cmp ebx, eax
cmovb ebx, eax
or edi, 0xffffffff
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x40720f
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edi
push eax
call fcn.004f9dfc
add esp, 4
test eax, eax
je 0x407c2b
mov edx, dword [ebp - 0x14]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x407225
test ecx, ecx
je 0x407223
push ecx
call fcn.004f9dfc
mov edx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
jmp 0x407225
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push edx
jb 0x40727d
mov ebx, dword [esi]
push ebx
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [edi + eax], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [edi + eax + 1], 0
cmp ecx, 0x1000
jb 0x407271
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x407c2b
mov ebx, edx
push ecx
push ebx
call fcn.004f9e2c
add esp, 8
jmp 0x407295
push esi
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [edi + eax], cl
mov byte [edi + eax + 1], 0
mov dword [esi], edi
mov edi, dword [ebp - 0x20]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14], edx
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
jae 0x407846
movzx ecx, byte [edi + eax]
movzx eax, byte [edi + eax + 1]
and ecx, 3
shl ecx, 4
add ecx, dword [ebp - 0x24]
shr eax, 4
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ecx
cmp edx, ecx
jae 0x4072f0
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x4072e3
mov eax, dword [esi]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
jmp 0x407400
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x407c30
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x407315
mov ebx, SysReAllocString
jmp 0x407333
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x40732b
mov ebx, SysReAllocString
jmp 0x407333
lea eax, [edi + ecx]
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x407375
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004f9dfc
add esp, 4
test eax, eax
je 0x407c2b
mov edx, dword [ebp - 0x14]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40738b
test ecx, ecx
je 0x407389
push ecx
call fcn.004f9dfc
mov edx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
jmp 0x40738b
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push edx
jb 0x4073e3
mov ebx, dword [esi]
push ebx
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [edi + eax], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [edi + eax + 1], 0
cmp ecx, 0x1000
jb 0x4073d7
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x407c2b
mov ebx, edx
push ecx
push ebx
call fcn.004f9e2c
add esp, 8
jmp 0x4073fb
push esi
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [edi + eax], cl
mov byte [edi + eax + 1], 0
mov dword [esi], edi
mov edi, dword [ebp - 0x20]
mov ebx, dword [esi + 0x10]
lea eax, [edi + 2]
cmp eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
jae 0x40763a
movzx ecx, byte [edi + eax + 1]
movzx eax, byte [edi + eax + 2]
and ecx, 0xf
shr eax, 6
add eax, dword [ebp - 0x24]
mov dl, byte [eax + ecx*4]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jae 0x407451
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x407444
mov eax, dword [esi]
mov byte [eax + ebx], dl
mov byte [eax + ebx + 1], 0
jmp 0x407525
mov eax, SysReAllocString
sub eax, ebx
cmp eax, 1
jb 0x407c30
lea edi, [ebx + 1]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x407476
mov edi, SysReAllocString
jmp 0x407494
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x40748c
mov edi, SysReAllocString
jmp 0x407494
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
mov ecx, esi
call fcn.00406ea0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebx + 1]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
push ebx
jb 0x407508
mov edi, dword [esi]
push edi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [eax + ebx + 1], 0
cmp ecx, 0x1000
jb 0x4074f9
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x407c2b
mov edi, edx
push ecx
push edi
call fcn.004f9e2c
mov eax, dword [ebp - 0x14]
add esp, 8
jmp 0x407520
push esi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
mov edi, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [esi + 0x10]
movzx eax, byte [edi + eax + 2]
and eax, 0x3f
mov dl, byte [eax + ecx]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jae 0x407562
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x407555
mov eax, dword [esi]
mov byte [eax + ebx], dl
mov byte [eax + ebx + 1], 0
jmp 0x407c01
mov eax, SysReAllocString
sub eax, ebx
cmp eax, 1
jb 0x407c30
lea edi, [ebx + 1]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x407587
mov edi, SysReAllocString
jmp 0x4075a5
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x40759d
mov edi, SysReAllocString
jmp 0x4075a5
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
mov ecx, esi
call fcn.00406ea0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebx + 1]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
push ebx
jb 0x40761e
mov edi, dword [esi]
push edi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [eax + ebx + 1], 0
cmp ecx, 0x1000
jb 0x40760a
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x407c2b
mov edi, edx
push ecx
push edi
call fcn.004f9e2c
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [esi], eax
jmp 0x407c01
push esi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
mov dword [esi], eax
jmp 0x407bfe
movzx eax, byte [edi + eax + 1]
mov ecx, dword [ebp - 0x24]
and eax, 0xf
mov dl, byte [ecx + eax*4]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x18], ecx
cmp ebx, ecx
jae 0x407671
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x407664
mov eax, dword [esi]
mov byte [eax + ebx], dl
mov byte [eax + ebx + 1], 0
jmp 0x407742
mov eax, SysReAllocString
sub eax, ebx
cmp eax, 1
jb 0x407c30
lea edi, [ebx + 1]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x407696
mov edi, SysReAllocString
jmp 0x4076b4
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4076ac
mov edi, SysReAllocString
jmp 0x4076b4
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
mov ecx, esi
call fcn.00406ea0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebx + 1]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
push ebx
jb 0x407728
mov edi, dword [esi]
push edi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [eax + ebx + 1], 0
cmp ecx, 0x1000
jb 0x407719
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x407c2b
mov edi, edx
push ecx
push edi
call fcn.004f9e2c
mov eax, dword [ebp - 0x14]
add esp, 8
jmp 0x407740
push esi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
mov dword [esi], eax
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x18], ecx
cmp edi, ecx
jae 0x40776e
lea eax, [edi + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x40775e
mov eax, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov byte [eax + edi], bl
mov byte [eax + edi + 1], 0
jmp 0x407c01
mov eax, SysReAllocString
sub eax, edi
cmp eax, 1
jb 0x407c30
lea ebx, [edi + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x407793
mov ebx, SysReAllocString
jmp 0x4077b1
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4077a9
mov ebx, SysReAllocString
jmp 0x4077b1
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
mov ecx, esi
call fcn.00406ea0
cmp dword [ebp - 0x18], 0x10
lea ecx, [edi + 1]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
push edi
jb 0x40782a
mov ebx, dword [esi]
push ebx
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov byte [eax + edi], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [eax + edi + 1], 0
cmp ecx, 0x1000
jb 0x407816
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x407c2b
mov ebx, edx
push ecx
push ebx
call fcn.004f9e2c
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [esi], eax
jmp 0x407c01
push esi
push eax
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + edi], cl
mov byte [eax + edi + 1], 0
mov dword [esi], eax
jmp 0x407bfe
movzx eax, byte [edi + eax]
mov ecx, dword [ebp - 0x24]
and eax, 3
add eax, eax
mov bl, byte [ecx + eax*8]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ecx
cmp edx, ecx
jae 0x40787e
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x407871
mov eax, dword [esi]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
jmp 0x40798b
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x407c30
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x4078a3
mov ebx, SysReAllocString
jmp 0x4078c1
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x4078b9
mov ebx, SysReAllocString
jmp 0x4078c1
lea eax, [edi + ecx]
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x407903
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004f9dfc
add esp, 4
test eax, eax
je 0x407c2b
mov edx, dword [ebp - 0x14]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x407919
test ecx, ecx
je 0x407917
push ecx
call fcn.004f9dfc
mov edx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
jmp 0x407919
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push edx
jb 0x407971
mov ebx, dword [esi]
push ebx
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [edi + eax], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [edi + eax + 1], 0
cmp ecx, 0x1000
jb 0x407965
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x407c2b
mov ebx, edx
push ecx
push ebx
call fcn.004f9e2c
add esp, 8
jmp 0x407989
push esi
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [edi + eax], cl
mov byte [edi + eax + 1], 0
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp edx, ecx
jae 0x4079ba
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x4079aa
mov eax, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
jmp 0x407aca
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x407c30
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x4079df
mov ebx, SysReAllocString
jmp 0x4079fd
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x4079f5
mov ebx, SysReAllocString
jmp 0x4079fd
lea eax, [ecx + edi]
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x407a3f
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004f9dfc
add esp, 4
test eax, eax
je 0x407c2b
mov edx, dword [ebp - 0x14]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x407a55
test ecx, ecx
je 0x407a53
push ecx
call fcn.004f9dfc
mov edx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
jmp 0x407a55
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push edx
jb 0x407ab0
mov ebx, dword [esi]
push ebx
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov byte [edi + eax], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [edi + eax + 1], 0
cmp ecx, 0x1000
jb 0x407aa1
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x407c2b
mov ebx, edx
push ecx
push ebx
call fcn.004f9e2c
mov ebx, dword [ebp - 0x1c]
add esp, 8
jmp 0x407ac8
push esi
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
mov byte [edi + eax], bl
mov byte [edi + eax + 1], 0
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp edx, ecx
jae 0x407af6
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x407ae9
mov eax, dword [esi]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
jmp 0x407c01
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x407c30
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x407b1b
mov ebx, SysReAllocString
jmp 0x407b39
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x407b31
mov ebx, SysReAllocString
jmp 0x407b39
lea eax, [ecx + edi]
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x407b7b
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004f9dfc
add esp, 4
test eax, eax
je 0x407c2b
mov edx, dword [ebp - 0x14]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x407b91
test ecx, ecx
je 0x407b8f
push ecx
call fcn.004f9dfc
mov edx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
jmp 0x407b91
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push edx
jb 0x407be7
mov ebx, dword [esi]
push ebx
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov byte [edi + eax], cl
mov ecx, dword [ebp - 0x18]
inc ecx
mov byte [edi + eax + 1], 0
cmp ecx, 0x1000
jb 0x407bd9
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x407c2b
mov ebx, edx
push ecx
push ebx
call fcn.004f9e2c
add esp, 8
mov dword [esi], edi
jmp 0x407c01
push esi
push edi
call fcn.0053e5a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [edi + eax], cl
mov byte [edi + eax + 1], 0
mov dword [esi], edi
add esp, 0xc
mov eax, dword [ebp - 0x20]
add eax, 3
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp + 0x10]
jae 0x407c17
mov ebx, dword [ebp - 0x24]
jmp 0x40714d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00542930
call fcn.004069f0
int3